• Home
  • Raw
  • Download

Lines Matching refs:baseFile

25 PatchErrorCode PatchLoader::LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile,  in LoadPatchInternal()  argument
33 if (baseFile->IsBundlePack() || patchFile->IsBundlePack()) { in LoadPatchInternal()
41 if (!thread->GetCurrentEcmaContext()->HasCachedConstpool(baseFile)) { in LoadPatchInternal()
50 for (uint32_t idx = 0; idx < baseFile->GetConstpoolNum(); idx++) { in LoadPatchInternal()
51 JSTaggedValue constpool = thread->GetCurrentEcmaContext()->FindConstpool(baseFile, idx); in LoadPatchInternal()
61 FindAndReplaceSameMethod(thread, baseFile, patchFile, patchInfo, baseClassInfo); in LoadPatchInternal()
67 ReplaceModuleOfMethod(thread, baseFile, patchInfo); in LoadPatchInternal()
69 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile); in LoadPatchInternal()
114 void PatchLoader::ReplaceModuleOfMethod(JSThread *thread, const JSPandaFile *baseFile, PatchInfo &p… in ReplaceModuleOfMethod() argument
117 auto baseConstpoolValues = context->FindConstpools(baseFile); in ReplaceModuleOfMethod()
142 …std::shared_ptr<JSPandaFile> baseFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(baseFil… in UnloadPatchInternal() local
143 if (baseFile == nullptr) { in UnloadPatchInternal()
162 auto baseConstpoolValues = context->FindConstpools(baseFile.get()); in UnloadPatchInternal()
177 baseFile.get(), baseMethodLiteral->GetMethodId()); in UnloadPatchInternal()
186 ExecuteFuncOrPatchMain(thread, baseFile.get(), patchInfo, false); in UnloadPatchInternal()
187 ReplaceModuleOfMethod(thread, baseFile.get(), patchInfo); in UnloadPatchInternal()
256 void PatchLoader::FindAndReplaceSameMethod(JSThread *thread, const JSPandaFile *baseFile, in FindAndReplaceSameMethod() argument
261 …const CMap<int32_t, JSTaggedValue> &baseConstpoolValues = context->FindConstpools(baseFile).value(… in FindAndReplaceSameMethod()
281 FindSameMethod(patchInfo, baseFile, baseMethodId, baseClassInfo); in FindAndReplaceSameMethod()
291 SaveBaseMethodInfo(patchInfo, baseFile, baseMethodId, indexs); in FindAndReplaceSameMethod()
308 FindSameMethod(patchInfo, baseFile, baseMethodId, baseClassInfo); in FindAndReplaceSameMethod()
318 SaveBaseMethodInfo(patchInfo, baseFile, baseMethodId, indexs); in FindAndReplaceSameMethod()
325 MethodLiteral* PatchLoader::FindSameMethod(PatchInfo &patchInfo, const JSPandaFile *baseFile, in FindSameMethod() argument
330 CString baseRecordName = MethodLiteral::GetRecordName(baseFile, baseMethodId); in FindSameMethod()
336 CString baseMethodName = GetRealName(baseFile, baseMethodId, baseClassName); in FindSameMethod()
348 void PatchLoader::SaveBaseMethodInfo(PatchInfo &patchInfo, const JSPandaFile *baseFile, in SaveBaseMethodInfo() argument
352 MethodLiteral *baseMethodLiteral = baseFile->FindMethodLiteral(baseMethodId.GetOffset()); in SaveBaseMethodInfo()