Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dquick_fix_manager.cpp42 std::string patchFileName; in LoadPatchIfNeeded() local
46 bool needLoadPatch = callBack_(baseFileName, patchFileName, &patchBuffer, patchSize); in LoadPatchIfNeeded()
47 if (needLoadPatch && !HasLoadedPatch(patchFileName)) { in LoadPatchIfNeeded()
48 LoadPatch(thread, patchFileName, patchBuffer, patchSize, baseFileName); in LoadPatchIfNeeded()
53 bool QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, const std::stri… in LoadPatch() argument
55 if (quickFixLoaders_.find(patchFileName) != quickFixLoaders_.end()) { in LoadPatch()
60 LOG_ECMA(INFO) << "Load patch, patch: " << patchFileName << ", base:" << baseFileName; in LoadPatch()
62 bool ret = loader->LoadPatch(thread, patchFileName.c_str(), baseFileName.c_str()); in LoadPatch()
68 quickFixLoaders_.emplace(patchFileName, loader); in LoadPatch()
72 bool QuickFixManager::LoadPatch(JSThread *thread, const std::string &patchFileName, in LoadPatch() argument
[all …]
Dquick_fix_manager.h30 …bool LoadPatch(JSThread *thread, const std::string &patchFileName, const std::string &baseFileName…
31 …bool LoadPatch(JSThread *thread, const std::string &patchFileName, const void *patchBuffer, size_t…
33 bool UnloadPatch(JSThread *thread, const std::string &patchFileName);
36 const std::string &patchFileName);
45 inline bool HasLoadedPatch(std::string &patchFileName) const in HasLoadedPatch() argument
47 return quickFixLoaders_.find(patchFileName) != quickFixLoaders_.end(); in HasLoadedPatch()
Dquick_fix_loader.h31 bool LoadPatch(JSThread *thread, const CString &patchFileName, const CString &baseFileName);
32 …bool LoadPatch(JSThread *thread, const CString &patchFileName, const void *patchBuffer, size_t pat…
34 bool UnloadPatch(JSThread *thread, const CString &patchFileName);
66 void ClearPatchInfo(JSThread *thread, const CString &patchFileName) const;
Dquick_fix_loader.cpp30 bool QuickFixLoader::LoadPatch(JSThread *thread, const CString &patchFileName, const CString &baseF… in LoadPatch() argument
40 …JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, patchFileName, JSPandaFile::ENTRY_MAIN_… in LoadPatch()
49 bool QuickFixLoader::LoadPatch(JSThread *thread, const CString &patchFileName, const void *patchBuf… in LoadPatch() argument
59 thread, patchFileName, JSPandaFile::ENTRY_MAIN_FUNCTION, patchBuffer, patchSize); in LoadPatch()
372 bool QuickFixLoader::UnloadPatch(JSThread *thread, const CString &patchFileName) in UnloadPatch() argument
380 … const JSPandaFile *patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in UnloadPatch()
433 ClearPatchInfo(thread, patchFileName); in UnloadPatch()
439 void QuickFixLoader::ClearPatchInfo(JSThread *thread, const CString &patchFileName) const in ClearPatchInfo()
448 … const JSPandaFile *patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName); in ClearPatchInfo()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp60 std::string patchFileName = QUICKFIX_ABC_PATH "single_file/patch/index.abc"; in HWTEST_F_L0() local
69 result = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
73 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
76 result = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
83 std::string patchFileName = QUICKFIX_ABC_PATH "multi_file/patch/merge.abc"; in HWTEST_F_L0() local
92 result = JSNApi::LoadPatch(instance, patchFileName, baseFileName); in HWTEST_F_L0()
96 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0()
99 result = JSNApi::UnloadPatch(instance, patchFileName); in HWTEST_F_L0()
106 const char *patchFileName = "__patch.pa"; in HWTEST_F_L0() local
117 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 result = 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 result = JSNApi::UnloadPatch(ecmaVm, patchFileName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/quick_fix/
Dmain.cpp124 std::string patchFileName = fileNames[i]; in Main() local
126 res = JSNApi::LoadPatch(vm, patchFileName, baseFileName); in Main()
142 res = JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in Main()
150 res = JSNApi::UnloadPatch(vm, patchFileName); in Main()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h1278 …static bool LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileNam…
1279 …static bool LoadPatch(EcmaVM *vm, const std::string &patchFileName, const void *patchBuffer, size_…
1281 static bool UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1283 …sQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName);
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp2637 bool JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileNam… in LoadPatch() argument
2641 return quickFixManager->LoadPatch(thread, patchFileName, baseFileName); in LoadPatch()
2644 bool JSNApi::LoadPatch(EcmaVM *vm, const std::string &patchFileName, const void *patchBuffer, size_… in LoadPatch() argument
2649 return quickFixManager->LoadPatch(thread, patchFileName, patchBuffer, patchSize, baseFileName); in LoadPatch()
2652 bool JSNApi::UnloadPatch(EcmaVM *vm, const std::string &patchFileName) in UnloadPatch() argument
2656 return quickFixManager->UnloadPatch(thread, patchFileName); in UnloadPatch()
2662 …IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &patchFileName) in IsQuickFixCausedException() argument
2670 return quickFixManager->IsQuickFixCausedException(thread, exceptionInfo, patchFileName); in IsQuickFixCausedException()