Home
last modified time | relevance | path

Searched refs:patchFile (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/patch/
Dquick_fix_manager.cpp60 … std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->LoadJSPandaFileSecure( in LoadPatchIfNeeded() local
62 if (patchFile == nullptr) { in LoadPatchIfNeeded()
72 …auto ret = PatchLoader::LoadPatchInternal(thread, baseFile, patchFile.get(), patchInfo, baseClassI… in LoadPatchIfNeeded()
99 std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->LoadJSPandaFile( in LoadPatch() local
102 if (patchFile == nullptr) { in LoadPatch()
108 patchAndBaseFileNameMap_[patchFile->GetJSPandaFileDesc()] = baseFileName.c_str(); in LoadPatch()
112 …auto ret = PatchLoader::LoadPatchInternal(thread, baseFile.get(), patchFile.get(), patchInfo, base… in LoadPatch()
140 … std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->LoadJSPandaFileSecure( in LoadPatch() local
142 if (patchFile == nullptr) { in LoadPatch()
148 patchAndBaseFileNameMap_[patchFile->GetJSPandaFileDesc()] = baseFileName.c_str(); in LoadPatch()
[all …]
Dpatch_loader.cpp22 const JSPandaFile *patchFile, PatchInfo &patchInfo, in LoadPatchInternal() argument
29 if (baseFile->IsBundlePack() || patchFile->IsBundlePack()) { in LoadPatchInternal()
34 patchInfo = PatchLoader::GeneratePatchInfo(patchFile); in LoadPatchInternal()
37 … vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile); in LoadPatchInternal()
56 thread->GetCurrentEcmaContext()->CreateAllConstpool(patchFile); in LoadPatchInternal()
57 FindAndReplaceSameMethod(thread, baseFile, patchFile, patchInfo, baseClassInfo); in LoadPatchInternal()
62 ExecuteFuncOrPatchMain(thread, patchFile, patchInfo); in LoadPatchInternal()
65 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile); in LoadPatchInternal()
124 …std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchF… in UnloadPatchInternal() local
125 if (patchFile == nullptr) { in UnloadPatchInternal()
[all …]
Dpatch_loader.h124 const JSPandaFile *patchFile, PatchInfo &patchInfo,
139 static PatchInfo GeneratePatchInfo(const JSPandaFile *patchFile);
143 const JSPandaFile *patchFile,
158 … const JSPandaFile *patchFile, JSTaggedValue constpoolValue,
/arkcompiler/ets_runtime/ecmascript/debugger/
Dhot_reload_manager.cpp22 void HotReloadManager::NotifyPatchLoaded(const JSPandaFile *baseFile, const JSPandaFile *patchFile) in NotifyPatchLoaded() argument
28 baseJSPandaFiles_[patchFile] = baseFile; in NotifyPatchLoaded()
30 ExtractPatch(patchFile); in NotifyPatchLoaded()
34 void HotReloadManager::NotifyPatchUnloaded(const JSPandaFile *patchFile) in NotifyPatchUnloaded() argument
40 baseJSPandaFiles_.erase(patchFile); in NotifyPatchUnloaded()
Dhot_reload_manager.h31 void NotifyPatchLoaded(const JSPandaFile *baseFile, const JSPandaFile *patchFile);
32 void NotifyPatchUnloaded(const JSPandaFile *patchFile);
/arkcompiler/ets_runtime/ecmascript/debugger/tests/
Dhot_reload_manager_test.cpp81 auto patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchFileName.c_str()); in HWTEST_F_L0() local
82 EXPECT_TRUE(patchFile != nullptr); in HWTEST_F_L0()
83 EXPECT_TRUE(hotReloadManager->GetBaseJSPandaFile(patchFile.get()) == baseFile.get()); in HWTEST_F_L0()
94 EXPECT_TRUE(hotReloadManager->GetBaseJSPandaFile(patchFile.get()) != baseFile.get()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dquick_fix_test.cpp154 …std::shared_ptr<JSPandaFile> patchFile = pfManager->NewJSPandaFile(patchPF.release(), CString(patc… in HWTEST_F_L0() local
156 pfManager->AddJSPandaFile(patchFile); in HWTEST_F_L0()
163 pfManager->RemoveJSPandaFile(patchFile.get()); in HWTEST_F_L0()
176 std::shared_ptr<JSPandaFile> patchFile = in HWTEST_F_L0() local
178 EXPECT_TRUE(patchFile != nullptr); in HWTEST_F_L0()
189 … JSPandaFileManager::GetInstance()->GenerateProgram(instance, patchFile.get(), replacedRecordName); in HWTEST_F_L0()
230 std::shared_ptr<JSPandaFile> patchFile = in HWTEST_F_L0() local
232 EXPECT_TRUE(patchFile == nullptr); in HWTEST_F_L0()