| /arkcompiler/ets_runtime/ecmascript/patch/ |
| H A D | quick_fix_manager.cpp | 30 void QuickFixManager::RegisterQuickFixQueryFunc(const std::function<bool(std::string baseFileName, in RegisterQuickFixQueryFunc() argument 48 CString baseFileName = baseFile->GetJSPandaFileDesc(); in LoadPatchIfNeeded() local 49 if (checkedFiles_.find(baseFileName) != checkedFiles_.end()) { in LoadPatchIfNeeded() 50 LOG_ECMA(DEBUG) << "Do not need check " << baseFileName << " has patch again"; in LoadPatchIfNeeded() 53 checkedFiles_.insert(baseFileName); in LoadPatchIfNeeded() 55 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded() 57 LOG_ECMA(INFO) << "Do not need load patch of: " << baseFileName; in LoadPatchIfNeeded() 64 LOG_ECMA(ERROR) << "load patch jsPandafile failed of: " << baseFileName; in LoadPatchIfNeeded() 69 patchAndBaseFileNameMap_[patchFileName.c_str()] = baseFileName; in LoadPatchIfNeeded() 75 LOG_ECMA(ERROR) << "Load patch fail of: " << baseFileName; in LoadPatchIfNeeded() 82 LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &baseFileName) LoadPatch() argument 85 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; LoadPatch() local 122 LoadPatch(JSThread *thread, const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize) LoadPatch() argument 126 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; LoadPatch() local 165 CString baseFileName; UnloadPatch() local [all...] |
| H A D | quick_fix_manager.h | 29 void RegisterQuickFixQueryFunc(const std::function<bool(std::string baseFileName, 34 PatchErrorCode LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &baseFileName); 37 const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize); 53 // key: baseFileName 55 std::function<bool(std::string baseFileName,
|
| H A D | patch_loader.h | 127 const CString &baseFileName, PatchInfo &patchInfo);
|
| H A D | patch_loader.cpp | 115 const CString &baseFileName, PatchInfo &patchInfo) in UnloadPatchInternal() 117 std::shared_ptr<JSPandaFile> baseFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(baseFileName); in UnloadPatchInternal() 155 ReplacedMethod replacedMethod {baseMethodId, baseFileName}; in UnloadPatchInternal() 114 UnloadPatchInternal(JSThread *thread, const CString &patchFileName, const CString &baseFileName, PatchInfo &patchInfo) UnloadPatchInternal() argument
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
| H A D | quick_fix_test.cpp | 63 std::string baseFileName = QUICKFIX_ABC_PATH "single_file/base/index.abc"; in HWTEST_F_L0() local 70 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0() 73 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() 86 std::string baseFileName = QUICKFIX_ABC_PATH "single_file/base/index.abc"; in HWTEST_F_L0() local 93 bool result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0() 96 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() 103 result = JSNApi::Execute(instance, baseFileName, "index"); in HWTEST_F_L0() 109 res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() 122 std::string baseFileName = QUICKFIX_ABC_PATH "multi_file/base/merge.abc"; in HWTEST_F_L0() local 129 bool result = JSNApi::Execute(instance, baseFileName, "mai in HWTEST_F_L0() 145 std::string baseFileName = QUICKFIX_ABC_PATH "multi_file/base/merge.abc"; HWTEST_F_L0() local 206 const char *baseFileName = "__base.pa"; HWTEST_F_L0() local 237 CString baseFileName = QUICKFIX_ABC_PATH "multi_file/base/merge.abc"; HWTEST_F_L0() local 269 QuickFixQueryFunc( std::string baseFileName, std::string &patchFileName, uint8_t ** patchBuffer, size_t &patchBufferSize) QuickFixQueryFunc() argument 291 std::string baseFileName = QUICKFIX_ABC_PATH "multi_file/base/merge.abc"; HWTEST_F_L0() local [all...] |
| /arkcompiler/ets_runtime/ecmascript/module/ |
| H A D | module_path_helper.cpp | 19 * This function use recordName, requestName to get baseFileName and entryPoint. 22 CString &baseFileName, CString recordName, CString requestName) in ConcatFileNameWithMerge() 26 return ConcatMergeFileNameToNormalized(thread, jsPandaFile, baseFileName, recordName, requestName); in ConcatFileNameWithMerge() 30 return ParsePrefixBundle(thread, jsPandaFile, baseFileName, requestName, recordName); in ConcatFileNameWithMerge() 37 return MakeNewRecord(thread, jsPandaFile, baseFileName, recordName, requestName); in ConcatFileNameWithMerge() 39 CString entryPoint = TranslateExpressionInputWithEts(thread, jsPandaFile, baseFileName, requestName); in ConcatFileNameWithMerge() 58 CString &baseFileName, const CString &recordName, CString requestName) in ConcatMergeFileNameToNormalized() 66 CString entryPoint = ConcatImportFileNormalizedOhmurlWithRecordName(thread, jsPandaFile, baseFileName, in ConcatMergeFileNameToNormalized() 74 TranslateExpressionToNormalized(thread, jsPandaFile, baseFileName, recordName, requestName); in ConcatMergeFileNameToNormalized() 76 return ParseNormalizedOhmUrl(thread, baseFileName, recordNam in ConcatMergeFileNameToNormalized() 21 ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile, CString &baseFileName, CString recordName, CString requestName) ConcatFileNameWithMerge() argument 57 ConcatMergeFileNameToNormalized(JSThread *thread, const JSPandaFile *jsPandaFile, CString &baseFileName, const CString &recordName, CString requestName) ConcatMergeFileNameToNormalized() argument 83 ConcatImportFileNormalizedOhmurlWithRecordName(JSThread *thread, const JSPandaFile *jsPandaFile, CString &baseFileName, const CString &recordName, const CString &requestName) ConcatImportFileNormalizedOhmurlWithRecordName() argument 244 TransformToNormalizedOhmUrl(EcmaVM *vm, const CString &inputFileName, const CString &baseFileName, const CString &oldEntryPoint) TransformToNormalizedOhmUrl() argument 312 CString baseFileName; ParseUrl() local 330 ParsePrefixBundle(JSThread *thread, const JSPandaFile *jsPandaFile, [[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString recordName) ParsePrefixBundle() argument 380 ParseNormalizedOhmUrl(JSThread *thread, CString &baseFileName, const CString &recordName, CString requestName) ParseNormalizedOhmUrl() argument 410 MakeNewRecord(JSThread *thread, const JSPandaFile *jsPandaFile, CString &baseFileName, const CString &recordName, const CString &requestName) MakeNewRecord() argument 741 GetModuleNameWithBaseFile(const CString &baseFileName) GetModuleNameWithBaseFile() argument 771 TranslateExpressionInputWithEts(JSThread *thread, const JSPandaFile *jsPandaFile, CString &baseFileName, const CString &requestName) TranslateExpressionInputWithEts() argument 916 TranslateExpressionToNormalized(JSThread *thread, const JSPandaFile *jsPandaFile, [[maybe_unused]] CString &baseFileName, const CString &recordName, CString &requestPath) TranslateExpressionToNormalized() argument 957 ConcatOtherNormalizedOhmurl(EcmaVM *vm, const JSPandaFile *jsPandaFile, [[maybe_unused]] CString &baseFileName, CString &requestPath) ConcatOtherNormalizedOhmurl() argument 1137 ValidateAbcPath(const CString &baseFileName, ValidateFilePath checkMode) ValidateAbcPath() argument [all...] |
| H A D | module_path_helper.h | 30 * baseFileName = 'data/storage/el1/bundle/moduleName/ets/modules.abc'; 32 * baseFileName = 'data/storage/el1/bundle/bundleName/moduleName/moduleName/ets/modules.abc'; 133 CString &baseFileName, CString recordName, CString requestName); 144 static CString TransformToNormalizedOhmUrl(EcmaVM *vm, const CString &inputFileName, const CString &baseFileName, 148 [[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString recordName); 149 static CString ParseNormalizedOhmUrl(JSThread *thread, CString &baseFileName, const CString &recordName, 151 static CString MakeNewRecord(JSThread *thread, const JSPandaFile *jsPandaFile, CString &baseFileName, 172 static CString GetModuleNameWithBaseFile(const CString &baseFileName); 174 CString &baseFileName, const CString &requestName); 178 [[maybe_unused]] CString &baseFileName, cons 215 ParseHapPath(const CString &baseFileName) ParseHapPath() argument [all...] |
| H A D | module_data_extractor.h | 46 const CString &baseFileName, ModuleTypes moduleType);
|
| H A D | js_module_manager.h | 75 JSHandle<JSTaggedValue> ResolveNativeModule(const CString &moduleRequest, const CString &baseFileName, 97 JSThread *thread, const CString &recordNameStr, const CString &baseFileName);
|
| H A D | module_data_extractor.cpp | 137 const CString &baseFileName, ModuleTypes moduleType) in ParseNativeModule() 144 moduleRecord->SetEcmaModuleFilenameString(baseFileName); in ParseNativeModule() 136 ParseNativeModule(JSThread *thread, const CString &moduleRequestName, const CString &baseFileName, ModuleTypes moduleType) ParseNativeModule() argument
|
| H A D | js_module_manager.cpp | 544 const CString &baseFileName, ModuleTypes moduleType) in ResolveNativeModule() 548 moduleRequest, baseFileName, moduleType); in ResolveNativeModule() 863 JSThread *thread, const CString &recordName, const CString &baseFileName) in GetModuleNameSpaceFromFile() 868 thread, baseFileName, recordName, false, true)) { in GetModuleNameSpaceFromFile() 869 LOG_ECMA(ERROR) << "LoadModuleNameSpaceFromFile:Cannot execute module: "<< baseFileName << in GetModuleNameSpaceFromFile() 543 ResolveNativeModule(const CString &moduleRequest, const CString &baseFileName, ModuleTypes moduleType) ResolveNativeModule() argument 862 GetModuleNameSpaceFromFile( JSThread *thread, const CString &recordName, const CString &baseFileName) GetModuleNameSpaceFromFile() argument
|
| /arkcompiler/ets_runtime/test/executiontest/ |
| H A D | thread_termination_test.cpp | 132 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_ in HWTEST_F_L0() 202 std::string baseFileName = MODULE_ABC_PATH "termination_6.abc"; HWTEST_F_L0() local [all...] |
| /arkcompiler/ets_runtime/ecmascript/quick_fix/ |
| H A D | main.cpp | 57 bool QuickFixQueryFuncColdPatch(std::string baseFileName, std::string &patchFileName, in QuickFixQueryFuncColdPatch() argument 118 std::string baseFileName = fileNames[0]; in Main() local 133 res = JSNApi::Execute(vm, baseFileName, entryList[0]); in Main() 135 std::cout << "Cannot execute panda file '" << baseFileName << in Main() 148 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main() 157 res = JSNApi::Execute(vm, baseFileName, entryList[0]); in Main()
|
| /arkcompiler/ets_runtime/ecmascript/debugger/tests/ |
| H A D | hot_reload_manager_test.cpp | 65 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/module/tests/ |
| H A D | ecma_module_test.cpp | 540 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_module_base.abc"; in HWTEST_F_L0() local 544 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_module_base"); in HWTEST_F_L0() 550 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_A.abc"; in HWTEST_F_L0() local 554 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_A"); in HWTEST_F_L0() 561 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; in HWTEST_F_L0() local 565 bool result = JSNApi::Execute(instance, baseFileName, "module_test_module_test_C"); in HWTEST_F_L0() 572 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; in HWTEST_F_L0() local 580 moduleManager->AddResolveImportedModule(baseFileName.c_str(), moduleRecord.GetTaggedValue()); in HWTEST_F_L0() 581 JSHandle<JSTaggedValue> res = moduleManager->HostResolveImportedModule(baseFileName.c_str()); in HWTEST_F_L0() 591 CString baseFileName in HWTEST_F_L0() local 611 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 628 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 684 CString baseFileName = MODULE_ABC_PATH "module_test_module_test_B.abc"; HWTEST_F_L0() local 722 CString baseFileName = "a.abc"; HWTEST_F_L0() local 1263 CString baseFileName = ""; HWTEST_F_L0() local 1313 CString baseFileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local 1342 CString baseFileName = ""; HWTEST_F_L0() local 1381 CString baseFileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local 1407 CString baseFileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local 1506 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 1639 CString baseFileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local 1673 CString baseFileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local 1819 CString baseFileName = "/data/storage/el1/bundle/entry/ets/modules.abc"; HWTEST_F_L0() local 1841 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 1870 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 1905 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 1929 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 1958 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 1972 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 2020 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 2072 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 2116 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 2167 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_module.abc"; HWTEST_F_L0() local 2190 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 2206 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 2664 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 2852 CString baseFileName = baseFileNameStr.c_str(); HWTEST_F_L0() local 2877 CString baseFileName = baseFileNameStr.c_str(); HWTEST_F_L0() local 2899 CString baseFileName = baseFileNameStr.c_str(); HWTEST_F_L0() local 2944 std::string baseFileName = MODULE_ABC_PATH "module_unexecute_C.abc"; HWTEST_F_L0() local 3058 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3224 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3355 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3420 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3445 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3478 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3506 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3531 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3564 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3592 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3616 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3652 CString baseFileName = "modules.abc"; HWTEST_F_L0() local 3685 CString baseFileName = baseFileNameStr.c_str(); HWTEST_F_L0() local 3696 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_module_base.abc"; HWTEST_F_L0() local 3709 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 3724 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 3734 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 3754 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local 3774 std::string baseFileName = MODULE_ABC_PATH "module_test_module_test_C.abc"; HWTEST_F_L0() local [all...] |
| /arkcompiler/ets_runtime/test/fuzztest/loadpatch_fuzzer/ |
| H A D | loadpatch_fuzzer.cpp | 30 std::string baseFileName = "index.abc"; in LoadPatchFuzzTest() local 36 JSNApi::LoadPatch(vm, patchFileName, baseFileName); in LoadPatchFuzzTest()
|
| /arkcompiler/ets_runtime/test/fuzztest/loadpatchlong_fuzzer/ |
| H A D | loadpatchlong_fuzzer.cpp | 30 std::string baseFileName = "index.abc"; in LoadPatchLongFuzzTest() local 37 baseFileName, const_cast<uint8_t *>(data), size); in LoadPatchLongFuzzTest()
|
| /arkcompiler/ets_runtime/test/fuzztest/registerquickfixqueryfunc_fuzzer/ |
| H A D | registerquickfixqueryfunc_fuzzer.cpp | 25 bool QuickFixQueryFunc(std::string baseFileName, std::string &patchFileName, uint8_t **patchBuffer, in QuickFixQueryFunc() argument 28 if (baseFileName != "multi_file/base/merge.abc") { in QuickFixQueryFunc()
|
| /arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/ |
| H A D | jsvaluerefismodulenamespace_fuzzer.cpp | 54 CString baseFileName = "a.abc"; in IsModuleNamespaceObjectFuzztest() local 55 module->SetEcmaModuleFilenameString(baseFileName); in IsModuleNamespaceObjectFuzztest() 57 moduleManager->AddResolveImportedModule(baseFileName, module.GetTaggedValue()); in IsModuleNamespaceObjectFuzztest()
|
| /arkcompiler/ets_runtime/ecmascript/napi/test/ |
| H A D | jsnapi_second_tests.cpp | 1165 CString baseFileName = "a.abc"; in HWTEST_F_L0() local 1166 module->SetEcmaModuleFilenameString(baseFileName); in HWTEST_F_L0() 1168 moduleManager->AddResolveImportedModule(baseFileName, module.GetTaggedValue()); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/napi/include/ |
| H A D | jsnapi_expo.h | 1683 static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileName); 1686 const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize); 1691 static void RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName,
|
| /arkcompiler/ets_runtime/ecmascript/napi/ |
| H A D | jsnapi_expo.cpp | 3969 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileName) in LoadPatch() argument 3974 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch() 3979 const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize) in LoadPatch() 3985 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch() 4014 void JSNApi::RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName, in RegisterQuickFixQueryFunc() argument 3977 LoadPatch(EcmaVM *vm, const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize) LoadPatch() argument
|