Home
last modified time | relevance | path

Searched refs:baseFile (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.cpp24 PatchErrorCode PatchLoader::LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile, in LoadPatchInternal() argument
31 if (baseFile->IsBundlePack() || patchFile->IsBundlePack()) { in LoadPatchInternal()
39 if (!thread->GetCurrentEcmaContext()->HasCachedConstpool(baseFile)) { in LoadPatchInternal()
47 uint32_t num = baseFile->GetConstpoolNum(); in LoadPatchInternal()
50 JSTaggedValue constpool = thread->GetCurrentEcmaContext()->FindConstpool(baseFile, idx); in LoadPatchInternal()
60 FindAndReplaceSameMethod(thread, baseFile, patchFile, patchInfo); in LoadPatchInternal()
62 if (!ExecutePatchMain(thread, patchFile, baseFile, patchInfo)) { in LoadPatchInternal()
67 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile); in LoadPatchInternal()
72 const JSPandaFile *baseFile, PatchInfo &patchInfo) in ExecutePatchMain() argument
124 …UnloadPatchInternal(thread, patchFile->GetJSPandaFileDesc(), baseFile->GetJSPandaFileDesc(), patch… in ExecutePatchMain()
[all …]
Dpatch_loader.h65 static PatchErrorCode LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile,
70 …static MethodLiteral *FindSameMethod(PatchInfo &patchInfo, const JSPandaFile *baseFile, EntityId b…
75 const JSPandaFile *baseFile,
78 static void SaveBaseMethodInfo(PatchInfo &patchInfo, const JSPandaFile *baseFile,
85 … bool ExecutePatchMain(JSThread *thread, const JSPandaFile *patchFile, const JSPandaFile *baseFile,
Dquick_fix_manager.cpp35 void QuickFixManager::LoadPatchIfNeeded(JSThread *thread, const JSPandaFile *baseFile) in LoadPatchIfNeeded() argument
45 CString baseFileName = baseFile->GetJSPandaFileDesc(); in LoadPatchIfNeeded()
65 auto ret = PatchLoader::LoadPatchInternal(thread, baseFile, patchFile.get(), patchInfo); in LoadPatchIfNeeded()
83 std::shared_ptr<JSPandaFile> baseFile = in LoadPatch() local
85 if (baseFile == nullptr) { in LoadPatch()
99 auto ret = PatchLoader::LoadPatchInternal(thread, baseFile.get(), patchFile.get(), patchInfo); in LoadPatch()
120 std::shared_ptr<JSPandaFile> baseFile = JSPandaFileManager::GetInstance()->LoadJSPandaFile( in LoadPatch() local
122 if (baseFile == nullptr) { in LoadPatch()
135 auto ret = PatchLoader::LoadPatchInternal(thread, baseFile.get(), patchFile.get(), patchInfo); in LoadPatch()
172 JSTaggedValue QuickFixManager::CheckAndGetPatch(JSThread *thread, const JSPandaFile *baseFile, Enti… in CheckAndGetPatch() argument
[all …]
Dquick_fix_manager.h32 void LoadPatchIfNeeded(JSThread *thread, const JSPandaFile *baseFile);
41 …JSTaggedValue CheckAndGetPatch(JSThread *thread, const JSPandaFile *baseFile, EntityId baseMethodI…
/arkcompiler/ets_runtime/ecmascript/debugger/tests/
Dhot_reload_manager_test.cpp75 auto baseFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(baseFileName.c_str()); in HWTEST_F_L0() local
76 EXPECT_TRUE(baseFile != nullptr); in HWTEST_F_L0()
77 EXPECT_TRUE(hotReloadManager->GetBaseJSPandaFile(baseFile.get()) == baseFile.get()); 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.cpp149 …std::shared_ptr<JSPandaFile> baseFile = pfManager->NewJSPandaFile(basePF.release(), CString(baseFi… in HWTEST_F_L0() local
151 pfManager->AddJSPandaFileVm(instance, baseFile); in HWTEST_F_L0()
158 pfManager->RemoveJSPandaFileVm(instance, baseFile.get()); in HWTEST_F_L0()
188 std::shared_ptr<JSPandaFile> baseFile = in HWTEST_F_L0() local
190 EXPECT_TRUE(baseFile != nullptr); in HWTEST_F_L0()
196 quickFixManager->LoadPatchIfNeeded(thread, baseFile.get()); in HWTEST_F_L0()
199 pfManager->RemoveJSPandaFileVm(instance, baseFile.get()); in HWTEST_F_L0()
/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()
Dhot_reload_manager.h31 void NotifyPatchLoaded(const JSPandaFile *baseFile, const JSPandaFile *patchFile);