Home
last modified time | relevance | path

Searched refs:patchFileName (Results 1 – 9 of 9) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp28 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument
42 std::string patchFileName; in LoadPatchIfNeeded() local
46 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded()
58 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatchIfNeeded()
74 PatchErrorCode QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, in LoadPatch() argument
77 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch()
92 JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, patchFileName.c_str(), ""); in LoadPatch()
111 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize, in LoadPatch() argument
114 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch()
128 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatch()
[all …]
Dquick_fix_manager.h29 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,
Dpatch_loader.h50 CString patchFileName; member
67 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName,
88 static void ClearPatchInfo(JSThread *thread, const CString &patchFileName);
Dpatch_loader.cpp132 PatchErrorCode PatchLoader::UnloadPatchInternal(JSThread *thread, const CString &patchFileName, in UnloadPatchInternal() argument
141 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in UnloadPatchInternal()
199 ClearPatchInfo(thread, patchFileName); in UnloadPatchInternal()
203 void PatchLoader::ClearPatchInfo(JSThread *thread, const CString &patchFileName) in ClearPatchInfo() argument
212 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in ClearPatchInfo()
355 patchInfo.patchFileName = patchFile->GetJSPandaFileDesc(); in GeneratePatchInfo()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp61 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/debugger/tests/
Dhot_reload_manager_test.cpp66 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/ecmascript/quick_fix/
Dmain.cpp135 std::string patchFileName = fileNames[i]; in Main() local
137 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main()
156 res = JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in Main()
164 result = JSNApi::UnloadPatch(vm, patchFileName); in Main()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h1379 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1381 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize,
1383 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1385 …sQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName);
1388 std::string &patchFileName,
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp3493 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b… in LoadPatch() argument
3498 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch()
3502 … const std::string &patchFileName, const void *patchBuffer, size_t patchSize, in LoadPatch() argument
3509 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch()
3512 PatchErrorCode JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch() argument
3517 return quickFixManager->UnloadPatch(thread, patchFileName); in UnloadPatch()
3523 …IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName) in IsQuickFixCausedException() argument
3531 return quickFixManager->IsQuickFixCausedException(thread, exceptionInfo, patchFileName); in IsQuickFixCausedException()
3538 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument