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.cpp29 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument
43 std::string patchFileName; in LoadPatchIfNeeded() local
53 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded()
60 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatchIfNeeded()
67 patchAndBaseFileNameMap_[patchFileName.c_str()] = baseFileName; in LoadPatchIfNeeded()
80 PatchErrorCode QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, in LoadPatch() argument
83 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch()
99 thread, patchFileName.c_str(), "", false, ExecuteTypes::STATIC); in LoadPatch()
123 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, in LoadPatch() argument
126 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; 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, uint8_t *patchBuffer, size_t patchSize,
37 PatchErrorCode UnloadPatch(JSThread *thread, const std::string &patchFileName);
40 const std::string &patchFileName);
55 std::string &patchFileName,
Dpatch_loader.h90 CString patchFileName; member
125 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName,
152 static void ClearPatchInfo(JSThread *thread, const CString &patchFileName);
Dpatch_loader.cpp118 PatchErrorCode PatchLoader::UnloadPatchInternal(JSThread *thread, const CString &patchFileName, in UnloadPatchInternal() argument
127 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in UnloadPatchInternal()
180 ClearPatchInfo(thread, patchFileName); in UnloadPatchInternal()
213 void PatchLoader::ClearPatchInfo(JSThread *thread, const CString &patchFileName) in ClearPatchInfo() argument
222 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in ClearPatchInfo()
368 CString patchFileName = patchFile->GetJSPandaFileDesc(); in FindAndReplaceSameMethod() local
369 ReplacedMethod replacedMethod {patchMethodId, patchFileName}; in FindAndReplaceSameMethod()
427 CString patchFileName = patchFile->GetJSPandaFileDesc(); in FindAndReplaceClassLiteral() local
430 ReplacedMethod replacedMethod {patchMethodId, patchFileName}; in FindAndReplaceClassLiteral()
512 patchInfo.patchFileName = patchFile->GetJSPandaFileDesc(); in GeneratePatchInfo()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp63 std::string patchFileName = QUICKFIX_ABC_PATH "single_file/patch/index.abc"; in HWTEST_F_L0() local
72 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
76 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
79 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
86 std::string patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; in HWTEST_F_L0() local
95 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
99 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
102 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
141 const char *patchFileName = "__patch.pa"; in HWTEST_F_L0() local
152 …_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.cpp44 bool QuickFixQueryFuncColdPatch(std::string baseFileName, std::string &patchFileName, in QuickFixQueryFuncColdPatch() argument
133 std::string patchFileName = fileNames[i]; in Main() local
135 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main()
152 res = JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in Main()
160 result = JSNApi::UnloadPatch(vm, patchFileName); in Main()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi_expo.h1828 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1830 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize,
1832 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1834 …sQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName);
1837 std::string &patchFileName,
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp4362 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b… in LoadPatch() argument
4367 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch()
4371 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, in LoadPatch() argument
4378 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch()
4381 PatchErrorCode JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch() argument
4386 return quickFixManager->UnloadPatch(thread, patchFileName); in UnloadPatch()
4392 …IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName) in IsQuickFixCausedException() argument
4401 return quickFixManager->IsQuickFixCausedException(thread, exceptionInfo, patchFileName); in IsQuickFixCausedException()
4408 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument