/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
D | quick_fix_test.cpp | 61 std::string patchFileName = QUICKFIX_ABC_PATH "single_file/patch/index.abc"; in HWTEST_F_L0() local 70 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() 74 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 77 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0() 84 std::string patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; in HWTEST_F_L0() local 93 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0() 97 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 100 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0() 139 const char *patchFileName = "__patch.pa"; in HWTEST_F_L0() local 150 …_ptr<JSPandaFile> patchFile = pfManager->NewJSPandaFile(patchPF.release(), CString(patchFileName)); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/patch/ |
D | quick_fix_manager.cpp | 32 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument 46 std::string patchFileName; in LoadPatchIfNeeded() local 50 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded() 62 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatchIfNeeded() 81 PatchErrorCode QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, in LoadPatch() argument 84 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch() 99 JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, patchFileName.c_str(), ""); in LoadPatch() 121 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize, in LoadPatch() argument 124 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch() 138 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatch() [all …]
|
D | quick_fix_manager.h | 29 std::string &patchFileName, 33 …PatchErrorCode LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &ba… 35 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize, 37 PatchErrorCode UnloadPatch(JSThread *thread, const std::string &patchFileName); 40 const std::string &patchFileName); 55 std::string &patchFileName,
|
D | patch_loader.h | 73 CString patchFileName; member 101 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName, 125 static void ClearPatchInfo(JSThread *thread, const CString &patchFileName);
|
D | patch_loader.cpp | 139 PatchErrorCode PatchLoader::UnloadPatchInternal(JSThread *thread, const CString &patchFileName, in UnloadPatchInternal() argument 148 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in UnloadPatchInternal() 198 ClearPatchInfo(thread, patchFileName); in UnloadPatchInternal() 223 void PatchLoader::ClearPatchInfo(JSThread *thread, const CString &patchFileName) in ClearPatchInfo() argument 232 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in ClearPatchInfo() 390 patchInfo.patchFileName = patchFile->GetJSPandaFileDesc(); in GeneratePatchInfo()
|
/arkcompiler/ets_runtime/ecmascript/debugger/tests/ |
D | hot_reload_manager_test.cpp | 66 std::string patchFileName = DEBUGGER_ABC_DIR "single_file/patch/index.abc"; in HWTEST_F_L0() local 79 auto res = JSNApi::LoadPatch(ecmaVm, patchFileName, baseFileName); in HWTEST_F_L0() 81 auto patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName.c_str()); in HWTEST_F_L0() 89 result = JSNApi::IsQuickFixCausedException(ecmaVm, exception, patchFileName); in HWTEST_F_L0() 92 res = JSNApi::UnloadPatch(ecmaVm, patchFileName); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/fuzztest/jsnapiunloadpatch_fuzzer/ |
D | jsnapiunloadpatch_fuzzer.cpp | 30 std::string patchFileName = "index.abc"; in JSNApiUnloadPatchTest() local 35 JSNApi::UnloadPatch(vm, patchFileName); in JSNApiUnloadPatchTest()
|
/arkcompiler/ets_runtime/test/fuzztest/loadpatch_fuzzer/ |
D | loadpatch_fuzzer.cpp | 31 std::string patchFileName = "index.abc"; in LoadPatchFuzzTest() local 36 JSNApi::LoadPatch(vm, patchFileName, baseFileName); in LoadPatchFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/isquickfixcausedexception_fuzzer/ |
D | isquickfixcausedexception_fuzzer.cpp | 30 std::string patchFileName = "index.abc"; in IsQuickFixCausedExceptionFuzzerTest() local 36 JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in IsQuickFixCausedExceptionFuzzerTest()
|
/arkcompiler/ets_runtime/test/fuzztest/loadpatchlong_fuzzer/ |
D | loadpatchlong_fuzzer.cpp | 31 std::string patchFileName = "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/ |
D | registerquickfixqueryfunc_fuzzer.cpp | 25 bool QuickFixQueryFunc(std::string baseFileName, std::string &patchFileName, void **patchBuffer, in QuickFixQueryFunc() argument 31 patchFileName = "__index.pa"; in QuickFixQueryFunc()
|
/arkcompiler/ets_runtime/ecmascript/quick_fix/ |
D | main.cpp | 140 std::string patchFileName = fileNames[i]; in Main() local 142 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main() 163 res = JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in Main() 171 result = JSNApi::UnloadPatch(vm, patchFileName); in Main()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
D | jsnapi_expo.h | 1276 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b… 1278 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize, 1280 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName); 1282 …sQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName); 1285 std::string &patchFileName,
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi_expo.cpp | 2499 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b… in LoadPatch() argument 2503 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch() 2507 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize, in LoadPatch() argument 2513 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch() 2516 PatchErrorCode JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch() argument 2520 return quickFixManager->UnloadPatch(thread, patchFileName); in UnloadPatch() 2526 …IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName) in IsQuickFixCausedException() argument 2534 return quickFixManager->IsQuickFixCausedException(thread, exceptionInfo, patchFileName); in IsQuickFixCausedException() 2541 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument
|