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.cpp59 … std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->LoadJSPandaFileSecure( in LoadPatchIfNeeded() local
61 if (patchFile == nullptr) { in LoadPatchIfNeeded()
71 …auto ret = PatchLoader::LoadPatchInternal(thread, baseFile, patchFile.get(), patchInfo, baseClassI… in LoadPatchIfNeeded()
98 std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->LoadJSPandaFile( in LoadPatch() local
101 if (patchFile == nullptr) { in LoadPatch()
107 patchAndBaseFileNameMap_[patchFile->GetJSPandaFileDesc()] = baseFileName.c_str(); in LoadPatch()
111 …auto ret = PatchLoader::LoadPatchInternal(thread, baseFile.get(), patchFile.get(), patchInfo, base… in LoadPatch()
139 … std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->LoadJSPandaFileSecure( in LoadPatch() local
141 if (patchFile == nullptr) { in LoadPatch()
147 patchAndBaseFileNameMap_[patchFile->GetJSPandaFileDesc()] = baseFileName.c_str(); in LoadPatch()
[all …]
Dpatch_loader.cpp25 const JSPandaFile *patchFile, PatchInfo &patchInfo, in LoadPatchInternal() argument
32 if (baseFile->IsBundlePack() || patchFile->IsBundlePack()) { in LoadPatchInternal()
37 patchInfo = PatchLoader::GeneratePatchInfo(patchFile); in LoadPatchInternal()
40 … vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile); in LoadPatchInternal()
59 vm->CreateAllConstpool(patchFile); in LoadPatchInternal()
60 FindAndReplaceSameMethod(thread, baseFile, patchFile, patchInfo, baseClassInfo); in LoadPatchInternal()
65 ExecuteFuncOrPatchMain(thread, patchFile, patchInfo); in LoadPatchInternal()
68 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile); in LoadPatchInternal()
127 …std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchF… in UnloadPatchInternal() local
128 if (patchFile == nullptr) { in UnloadPatchInternal()
[all …]
Dpatch_loader.h123 const JSPandaFile *patchFile, PatchInfo &patchInfo,
138 static PatchInfo GeneratePatchInfo(const JSPandaFile *patchFile);
142 const JSPandaFile *patchFile,
157 … 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.cpp152 …std::shared_ptr<JSPandaFile> patchFile = pfManager->NewJSPandaFile(patchPF.release(), CString(patc… in HWTEST_F_L0() local
154 pfManager->AddJSPandaFile(patchFile); in HWTEST_F_L0()
161 pfManager->RemoveJSPandaFile(patchFile.get()); in HWTEST_F_L0()
174 std::shared_ptr<JSPandaFile> patchFile = in HWTEST_F_L0() local
176 EXPECT_TRUE(patchFile != nullptr); in HWTEST_F_L0()
186 … JSPandaFileManager::GetInstance()->GenerateProgram(instance, patchFile.get(), replacedRecordName); in HWTEST_F_L0()
227 std::shared_ptr<JSPandaFile> patchFile = in HWTEST_F_L0() local
229 EXPECT_TRUE(patchFile == nullptr); in HWTEST_F_L0()