• Home
  • Raw
  • Download

Lines Matching refs:patchFile

25                                               const JSPandaFile *patchFile, PatchInfo &patchInfo)  in LoadPatchInternal()  argument
31 if (baseFile->IsBundlePack() || patchFile->IsBundlePack()) { in LoadPatchInternal()
37 patchInfo = PatchLoader::GeneratePatchInfo(patchFile); in LoadPatchInternal()
59 thread->GetCurrentEcmaContext()->CreateAllConstpool(patchFile); 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()
71 bool PatchLoader::ExecutePatchMain(JSThread *thread, const JSPandaFile *patchFile, in ExecutePatchMain() argument
76 const auto &recordInfos = patchFile->GetJSRecordInfo(); in ExecutePatchMain()
78 bool isNewVersion = patchFile->IsNewVersion(); in ExecutePatchMain()
81 uint32_t mainMethodIndex = patchFile->GetMainMethodIndex(recordName); in ExecutePatchMain()
87 CString mainMethodName = MethodLiteral::GetMethodName(patchFile, mainMethodId); in ExecutePatchMain()
97 constpoolVal = thread->GetCurrentEcmaContext()->FindConstpool(patchFile, mainMethodId); in ExecutePatchMain()
99 constpoolVal = thread->GetCurrentEcmaContext()->FindConstpool(patchFile, 0); in ExecutePatchMain()
103 MethodLiteral *mainMethodLiteral = patchFile->FindMethodLiteral(mainMethodIndex); in ExecutePatchMain()
115 patchFile->GetJSPandaFileDesc(), recordName); in ExecutePatchMain()
124 …UnloadPatchInternal(thread, patchFile->GetJSPandaFileDesc(), baseFile->GetJSPandaFileDesc(), patch… in ExecutePatchMain()
141 …std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchF… in UnloadPatchInternal() local
142 if (patchFile == nullptr) { in UnloadPatchInternal()
190 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchUnloaded(patchFile.get()); in UnloadPatchInternal()
212 …std::shared_ptr<JSPandaFile> patchFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(patchF… in ClearPatchInfo() local
213 if (patchFile != nullptr) { in ClearPatchInfo()
237 const JSPandaFile *patchFile, PatchInfo &patchInfo) in FindAndReplaceSameMethod() argument
264 JSTaggedValue patchConstpoolValue = context->FindConstpool(patchFile, in FindAndReplaceSameMethod()
290 JSTaggedValue patchConstpoolValue = context->FindConstpool(patchFile, in FindAndReplaceSameMethod()
330 PatchInfo PatchLoader::GeneratePatchInfo(const JSPandaFile *patchFile) in GeneratePatchInfo() argument
332 const auto &map = patchFile->GetMethodLiteralMap(); in GeneratePatchInfo()
337 CString methodName = MethodLiteral::GetMethodName(patchFile, methodId); in GeneratePatchInfo()
344 CString recordName = MethodLiteral::GetRecordName(patchFile, methodId); in GeneratePatchInfo()
355 patchInfo.patchFileName = patchFile->GetJSPandaFileDesc(); in GeneratePatchInfo()