Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp30 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument
44 std::string patchFileName; in LoadPatchIfNeeded() local
54 bool needLoadPatch = callBack_(baseFileName.c_str(), patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded()
61 thread, patchFileName.c_str(), "", patchBuffer, patchSize); in LoadPatchIfNeeded()
68 patchAndBaseFileNameMap_[patchFileName.c_str()] = baseFileName; 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()
100 thread, patchFileName.c_str(), "", false, ExecuteTypes::STATIC); in LoadPatch()
124 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, in LoadPatch() argument
127 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch()
[all …]
Dquick_fix_manager.h30 std::string &patchFileName,
34 …PatchErrorCode LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &ba…
36 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize,
38 PatchErrorCode UnloadPatch(JSThread *thread, const std::string &patchFileName);
41 const std::string &patchFileName);
56 std::string &patchFileName,
Dpatch_loader.h91 CString patchFileName; member
126 static PatchErrorCode UnloadPatchInternal(JSThread *thread, const CString &patchFileName,
153 static void ClearPatchInfo(JSThread *thread, const CString &patchFileName);
Dpatch_loader.cpp115 PatchErrorCode PatchLoader::UnloadPatchInternal(JSThread *thread, const CString &patchFileName, in UnloadPatchInternal() argument
124 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in UnloadPatchInternal()
178 ClearPatchInfo(thread, patchFileName); in UnloadPatchInternal()
212 void PatchLoader::ClearPatchInfo(JSThread *thread, const CString &patchFileName) in ClearPatchInfo() argument
221 …red_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in ClearPatchInfo()
355 CString patchFileName = patchFile->GetJSPandaFileDesc(); in FindAndReplaceSameMethod() local
356 ReplacedMethod replacedMethod {patchMethodId, patchFileName}; in FindAndReplaceSameMethod()
414 CString patchFileName = patchFile->GetJSPandaFileDesc(); in FindAndReplaceClassLiteral() local
417 ReplacedMethod replacedMethod {patchMethodId, patchFileName}; in FindAndReplaceClassLiteral()
499 patchInfo.patchFileName = patchFile->GetJSPandaFileDesc(); in GeneratePatchInfo()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp65 std::string patchFileName = QUICKFIX_ABC_PATH "single_file/patch/index.abc"; in HWTEST_F_L0() local
74 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
78 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
81 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
88 std::string patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; in HWTEST_F_L0() local
97 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
101 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
104 res = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
143 const char *patchFileName = "__patch.pa"; in HWTEST_F_L0() local
154 …_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.cpp46 bool QuickFixQueryFuncColdPatch(std::string baseFileName, std::string &patchFileName, in QuickFixQueryFuncColdPatch() argument
135 std::string patchFileName = fileNames[i]; in Main() local
137 auto result = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main()
154 res = JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in Main()
162 result = JSNApi::UnloadPatch(vm, patchFileName); in Main()
/arkcompiler/ets_runtime/test/fuzztest/loadpatchlong_fuzzer/
Dloadpatchlong_fuzzer.cpp31 std::string patchFileName = "index.abc"; in LoadPatchLongFuzzTest() local
36 JSNApi::LoadPatch(vm, patchFileName, const_cast<uint8_t *>(data), size, in LoadPatchLongFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi_expo.h1755 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1757 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize,
1759 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1761 …sQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName);
1764 std::string &patchFileName,
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp4075 PatchErrorCode JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b… in LoadPatch() argument
4080 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch()
4084 … const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize, in LoadPatch() argument
4091 thread, patchFileName, patchBuffer, patchSize, baseFileName, baseBuffer, baseSize); in LoadPatch()
4094 PatchErrorCode JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch() argument
4099 return quickFixManager->UnloadPatch(thread, patchFileName); in UnloadPatch()
4105 …IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName) in IsQuickFixCausedException() argument
4114 return quickFixManager->IsQuickFixCausedException(thread, exceptionInfo, patchFileName); in IsQuickFixCausedException()
4121 std::string &patchFileName, in RegisterQuickFixQueryFunc() argument