Home
last modified time | relevance | path

Searched refs:baseFileName (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp31 void QuickFixManager::RegisterQuickFixQueryFunc(const std::function<bool(std::string baseFileName, in RegisterQuickFixQueryFunc() argument
49 CString baseFileName = baseFile->GetJSPandaFileDesc(); in LoadPatchIfNeeded() local
50 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded()
52 LOG_ECMA(INFO) << "Do not need load patch of: " << baseFileName; in LoadPatchIfNeeded()
56 if (methodInfos_.find(baseFileName) != methodInfos_.end()) { in LoadPatchIfNeeded()
57 LOG_ECMA(DEBUG) << "Cannot repeat load patch of: " << baseFileName; in LoadPatchIfNeeded()
64 LOG_ECMA(ERROR) << "load patch jsPandafile failed of: " << baseFileName; in LoadPatchIfNeeded()
74 LOG_ECMA(ERROR) << "Load patch fail of: " << baseFileName; in LoadPatchIfNeeded()
78 methodInfos_.emplace(baseFileName, patchInfo); in LoadPatchIfNeeded()
82 const std::string &baseFileName) in LoadPatch() argument
[all …]
Dquick_fix_manager.h28 void RegisterQuickFixQueryFunc(const std::function<bool(std::string baseFileName,
33 …ode LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &baseFileName);
36 … const std::string &baseFileName, const void *baseBuffer, size_t baseSize);
54 std::function<bool(std::string baseFileName,
Dpatch_loader.h102 const CString &baseFileName, PatchInfo &patchInfo);
Dpatch_loader.cpp140 const CString &baseFileName, PatchInfo &patchInfo) in UnloadPatchInternal() argument
142 …hared_ptr<JSPandaFile> baseFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(baseFileName); in UnloadPatchInternal()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp60 std::string baseFileName = QUICKFIX_ABC_PATH "single_file/base/index.abc"; in HWTEST_F_L0() local
67 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0()
70 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
83 std::string baseFileName = QUICKFIX_ABC_PATH "multi_file/base/merge.abc"; in HWTEST_F_L0() local
90 bool result = JSNApi::Execute(instance, baseFileName, "main"); in HWTEST_F_L0()
93 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
135 const char *baseFileName = "__base.pa"; in HWTEST_F_L0() local
149 …red_ptr<JSPandaFile> baseFile = pfManager->NewJSPandaFile(basePF.release(), CString(baseFileName)); in HWTEST_F_L0()
155 baseFileName, (void *)baseData, sizeof(baseData)); in HWTEST_F_L0()
163 …std::string baseFileName, std::string &patchFileName, void ** patchBuffer, size_t &patchBufferSize) in QuickFixQueryFunc() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp22 CString &baseFileName, CString recordName, CString requestName) in ConcatFileNameWithMerge() argument
27 entryPoint = ParsePrefixBundle(thread, jsPandaFile, baseFileName, requestName, recordName); in ConcatFileNameWithMerge()
35 entryPoint = MakeNewRecord(jsPandaFile, baseFileName, recordName, requestName); in ConcatFileNameWithMerge()
38 … entryPoint = TranslateExpressionInputWithEts(thread, jsPandaFile, baseFileName, requestName); in ConcatFileNameWithMerge()
45 …OG_ECMA(ERROR) << "Failed to resolve the requested entryPoint. baseFileName : '" << baseFileName << in ConcatFileNameWithMerge()
130 CString baseFileName; in ParseUrl() local
133 baseFileName = BUNDLE_INSTALL_PATH + bundleName + PathHelper::SLASH_TAG + moduleName + in ParseUrl()
137 baseFileName = BUNDLE_INSTALL_PATH + moduleName + MERGE_ABC_ETS_MODULES; in ParseUrl()
139 return baseFileName; in ParseUrl()
149 …[[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString record… in ParsePrefixBundle() argument
[all …]
Dmodule_path_helper.h101 … CString &baseFileName, CString recordName, CString requestName);
106 …[[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString record…
107 static CString MakeNewRecord(const JSPandaFile *jsPandaFile, CString &baseFileName,
129 static CString GetModuleNameWithBaseFile(const CString &baseFileName);
131 … CString &baseFileName, const CString &requestName);
136 inline static std::string ParseHapPath(const CString &baseFileName) in ParseHapPath() argument
140 …if (baseFileName.length() > startStrLen && baseFileName.compare(0, startStrLen, bundleSubInstallNa… in ParseHapPath()
141 CString hapPath = baseFileName.substr(startStrLen); in ParseHapPath()
/arkcompiler/ets_runtime/test/executiontest/
Dthread_termination_test.cpp132 std::string baseFileName = MODULE_ABC_PATH "termination_1.abc"; in HWTEST_F_L0() local
133 JSNApi::Execute(vm_, baseFileName, "termination_1"); in HWTEST_F_L0()
147 std::string baseFileName = MODULE_ABC_PATH "termination_2.abc"; in HWTEST_F_L0() local
148 JSNApi::Execute(vm_, baseFileName, "termination_2"); in HWTEST_F_L0()
163 std::string baseFileName = MODULE_ABC_PATH "termination_3.abc"; in HWTEST_F_L0() local
164 JSNApi::Execute(vm_, baseFileName, "termination_3"); in HWTEST_F_L0()
177 std::string baseFileName = MODULE_ABC_PATH "termination_4.abc"; in HWTEST_F_L0() local
178 JSNApi::Execute(vm_, baseFileName, "termination_4"); in HWTEST_F_L0()
190 std::string baseFileName = MODULE_ABC_PATH "termination_5.abc"; in HWTEST_F_L0() local
191 JSNApi::Execute(vm_, baseFileName, "termination_5"); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/tests/
Dhot_reload_manager_test.cpp65 std::string baseFileName = DEBUGGER_ABC_DIR "single_file/base/index.abc"; in HWTEST_F_L0() local
72 bool result = JSNApi::Execute(ecmaVm, baseFileName, "index"); in HWTEST_F_L0()
75 auto baseFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(baseFileName.c_str()); in HWTEST_F_L0()
79 auto res = JSNApi::LoadPatch(ecmaVm, patchFileName, baseFileName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/quick_fix/
Dmain.cpp112 std::string baseFileName = fileNames[0]; in Main() local
127 res = JSNApi::Execute(vm, baseFileName, entryList[0]); in Main()
129 std::cout << "Cannot execute panda file '" << baseFileName << in Main()
142 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main()
150 res = JSNApi::Execute(vm, baseFileName, entryList[0]); in Main()
/arkcompiler/ets_runtime/test/fuzztest/loadpatch_fuzzer/
Dloadpatch_fuzzer.cpp30 std::string baseFileName = "index.abc"; in LoadPatchFuzzTest() local
36 JSNApi::LoadPatch(vm, patchFileName, baseFileName); in LoadPatchFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/loadpatchlong_fuzzer/
Dloadpatchlong_fuzzer.cpp30 std::string baseFileName = "index.abc"; in LoadPatchLongFuzzTest() local
36 JSNApi::LoadPatch(vm, patchFileName, (void *)data, size, baseFileName, (void *)data, size); in LoadPatchLongFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/registerquickfixqueryfunc_fuzzer/
Dregisterquickfixqueryfunc_fuzzer.cpp25 bool QuickFixQueryFunc(std::string baseFileName, std::string &patchFileName, void **patchBuffer, in QuickFixQueryFunc() argument
28 if (baseFileName != "multi_file/base/merge.abc") { in QuickFixQueryFunc()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp205 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_module_base.abc"; in HWTEST_F_L0() local
209 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_module_base"); in HWTEST_F_L0()
215 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_A.abc"; in HWTEST_F_L0() local
219 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_A"); in HWTEST_F_L0()
225 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; in HWTEST_F_L0() local
229 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_C"); in HWTEST_F_L0()
236 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; in HWTEST_F_L0() local
244 moduleManager->AddResolveImportedModule(baseFileName.c_str(), moduleRecord); in HWTEST_F_L0()
245 JSHandle<JSTaggedValue> res = moduleManager->HostResolveImportedModule(baseFileName.c_str()); in HWTEST_F_L0()
259 CString baseFileName = "a.abc"; in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp52 CString baseFileName = "a.abc"; in IsModuleNamespaceObjectFuzztest() local
53 JSHandle<EcmaString> moduleFilename = objectFactory->NewFromUtf8(baseFileName); in IsModuleNamespaceObjectFuzztest()
56 moduleManager->AddResolveImportedModule(baseFileName, JSHandle<JSTaggedValue>::Cast(module)); in IsModuleNamespaceObjectFuzztest()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_second_tests.cpp1158 CString baseFileName = "a.abc"; in HWTEST_F_L0() local
1159 JSHandle<EcmaString> moduleFilename = objectFactory->NewFromUtf8(baseFileName); in HWTEST_F_L0()
1162 moduleManager->AddResolveImportedModule(baseFileName, JSHandle<JSTaggedValue>::Cast(module)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp773 CString baseFileName = jsPandaFile_->GetJSPandaFileDesc(); in CollectRecordExportInfo() local
775 baseFileName, recordName, moduleRequestName); in CollectRecordExportInfo()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi_expo.h1276 …ErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileName);
1279 … const std::string &baseFileName, const void *baseBuffer, size_t baseSize);
1284 static void RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName,
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.cpp157 CString baseFileName = jsPandaFile->GetJSPandaFileDesc(); in ResolveImportType() local
159 …ModulePathHelper::ConcatFileNameWithMerge(thread_, jsPandaFile, baseFileName, recordName, cstringR… in ResolveImportType()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp2499 …de JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileName) in LoadPatch() argument
2503 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch()
2508 … const std::string &baseFileName, const void *baseBuffer, size_t baseSize) in LoadPatch() argument
2513 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch()
2540 void JSNApi::RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName, in RegisterQuickFixQueryFunc() argument