Lines Matching defs:baseFile

20 PatchErrorCode PatchLoader::LoadPatchInternal(JSThread *thread, const JSPandaFile *baseFile,
28 if (baseFile->IsBundlePack() || patchFile->IsBundlePack()) {
36 if (!thread->GetCurrentEcmaContext()->HasCachedConstpool(baseFile)) {
38 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile);
46 for (uint32_t idx = 0; idx < baseFile->GetConstpoolNum(); idx++) {
47 JSTaggedValue constpool = thread->GetCurrentEcmaContext()->FindConstpool(baseFile, idx);
57 FindAndReplaceSameMethod(thread, baseFile, patchFile, patchInfo, baseClassInfo);
65 vm->GetJsDebuggerManager()->GetHotReloadManager()->NotifyPatchLoaded(baseFile, patchFile);
117 std::shared_ptr<JSPandaFile> baseFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(baseFileName);
118 if (baseFile == nullptr) {
137 auto baseConstpoolValues = context->FindConstpools(baseFile.get());
152 JSTaggedValue baseConstpoolValue = context->FindConstpool(baseFile.get(), baseMethodId);
154 // and the JSPandaFile of replaced method is baseFile
165 ExecuteFuncOrPatchMain(thread, baseFile.get(), patchInfo, false);
321 void PatchLoader::FindAndReplaceSameMethod(JSThread *thread, const JSPandaFile *baseFile,
326 const CMap<int32_t, JSTaggedValue> &baseConstpoolValues = context->FindConstpools(baseFile).value();
346 FindSameMethod(patchInfo, baseFile, baseMethodId, baseClassInfo);
364 SaveBaseMethodInfo(patchInfo, baseFile, baseMethodId, indexs);
367 FindAndReplaceClassLiteral(thread, baseFile, patchFile, constpoolValue, patchInfo,
381 FindAndReplaceClassLiteral(thread, baseFile, patchFile, constpoolValue, patchInfo,
387 void PatchLoader::FindAndReplaceClassLiteral(JSThread *thread, const JSPandaFile *baseFile,
407 FindSameMethod(patchInfo, baseFile, baseMethodId, baseClassInfo);
425 SaveBaseMethodInfo(patchInfo, baseFile, baseMethodId, indexs);
429 MethodLiteral* PatchLoader::FindSameMethod(PatchInfo &patchInfo, const JSPandaFile *baseFile,
434 if (!baseMethodId.IsValid() || baseMethodId.GetOffset() >= baseFile->GetFileSize()) {
437 CString baseRecordName = MethodLiteral::GetRecordName(baseFile, baseMethodId);
443 CString baseMethodName = GetRealName(baseFile, baseMethodId, baseClassName);
455 void PatchLoader::SaveBaseMethodInfo(PatchInfo &patchInfo, const JSPandaFile *baseFile,
459 MethodLiteral *baseMethodLiteral = baseFile->FindMethodLiteral(baseMethodId.GetOffset());