• Home
  • Raw
  • Download

Lines Matching refs:jsPandaFile

199         std::shared_ptr<JSPandaFile> jsPandaFile =  in ~EcmaContext()  local
201 if (jsPandaFile != nullptr) { in ~EcmaContext()
202 jsPandaFile->DeleteParsedConstpoolVM(vm_); in ~EcmaContext()
253 … const JSPandaFile *jsPandaFile, std::string_view entryPoint, in InvokeEcmaAotEntrypoint() argument
256 aotFileManager_->SetAOTMainFuncEntry(mainFunc, jsPandaFile, entryPoint); in InvokeEcmaAotEntrypoint()
275 …pected<JSTaggedValue, bool> EcmaContext::CommonInvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile, in CommonInvokeEcmaEntrypoint() argument
283 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in CommonInvokeEcmaEntrypoint()
289 if (jsPandaFile->IsModule(recordInfo)) { in CommonInvokeEcmaEntrypoint()
291 CString moduleName = jsPandaFile->GetJSPandaFileDesc(); in CommonInvokeEcmaEntrypoint()
292 if (!jsPandaFile->IsBundlePack()) { in CommonInvokeEcmaEntrypoint()
306 if (jsPandaFile->IsCjs(recordInfo)) { in CommonInvokeEcmaEntrypoint()
307 CJSExecution(func, global, jsPandaFile, entryPoint); in CommonInvokeEcmaEntrypoint()
309 if (aotFileManager_->IsLoadMain(jsPandaFile, entry)) { in CommonInvokeEcmaEntrypoint()
311 result = InvokeEcmaAotEntrypoint(func, global, jsPandaFile, entryPoint); in CommonInvokeEcmaEntrypoint()
330 Expected<JSTaggedValue, bool> EcmaContext::InvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile, in InvokeEcmaEntrypoint() argument
334 …JSHandle<Program> program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, e… in InvokeEcmaEntrypoint()
341 jsPandaFile->GetJSPandaFileDesc(), entryPoint); in InvokeEcmaEntrypoint()
344 … Expected<JSTaggedValue, bool> result = CommonInvokeEcmaEntrypoint(jsPandaFile, entryPoint, func); in InvokeEcmaEntrypoint()
354 const JSPandaFile *jsPandaFile, std::string_view entryPoint, bool excuteFromJob) in InvokeEcmaEntrypointForHotReload() argument
357 …JSHandle<Program> program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, e… in InvokeEcmaEntrypointForHotReload()
360 … Expected<JSTaggedValue, bool> result = CommonInvokeEcmaEntrypoint(jsPandaFile, entryPoint, func); in InvokeEcmaEntrypointForHotReload()
379 const JSPandaFile *jsPandaFile, std::string_view entryPoint) in CJSExecution() argument
387 if (jsPandaFile->IsBundlePack()) { in CJSExecution()
388 ModulePathHelper::ResolveCurrentPath(thread_, dirname, filename, jsPandaFile); in CJSExecution()
397 if (aotFileManager_->IsLoadMain(jsPandaFile, entryPoint.data())) { in CJSExecution()
400 InvokeEcmaAotEntrypoint(func, thisArg, jsPandaFile, entryPoint, &cjsInfo); in CJSExecution()
431 bool EcmaContext::HasCachedConstpool(const JSPandaFile *jsPandaFile) const in HasCachedConstpool()
433 return cachedConstpools_.find(jsPandaFile) != cachedConstpools_.end(); in HasCachedConstpool()
436 JSTaggedValue EcmaContext::FindConstpool(const JSPandaFile *jsPandaFile, int32_t index) in FindConstpool() argument
438 auto iter = cachedConstpools_.find(jsPandaFile); in FindConstpool()
450 const JSPandaFile *jsPandaFile) in FindConstpools() argument
452 auto iter = cachedConstpools_.find(jsPandaFile); in FindConstpools()
460 JSTaggedValue EcmaContext::FindConstpool(const JSPandaFile *jsPandaFile, panda_file::File::EntityId… in FindConstpool() argument
462 panda_file::IndexAccessor indexAccessor(*jsPandaFile->GetPandaFile(), id); in FindConstpool()
464 return FindConstpool(jsPandaFile, index); in FindConstpool()
467 JSTaggedValue EcmaContext::FindConstpoolWithAOT(const JSPandaFile *jsPandaFile, int32_t index) in FindConstpoolWithAOT() argument
469 JSTaggedValue constpool = FindConstpool(jsPandaFile, index); in FindConstpoolWithAOT()
474 bool result = GetAOTFileManager()->LoadAiFile(jsPandaFile); in FindConstpoolWithAOT()
476 constpool = FindConstpool(jsPandaFile, index); in FindConstpoolWithAOT()
482 JSHandle<ConstantPool> EcmaContext::FindOrCreateConstPool(const JSPandaFile *jsPandaFile, panda_fil… in FindOrCreateConstPool() argument
484 panda_file::IndexAccessor indexAccessor(*jsPandaFile->GetPandaFile(), id); in FindOrCreateConstPool()
486 JSTaggedValue constpool = FindConstpoolWithAOT(jsPandaFile, index); in FindOrCreateConstPool()
488 JSHandle<ConstantPool> newConstpool = ConstantPool::CreateConstPool(vm_, jsPandaFile, id); in FindOrCreateConstPool()
489 AddConstpool(jsPandaFile, newConstpool.GetTaggedValue(), index); in FindOrCreateConstPool()
495 void EcmaContext::CreateAllConstpool(const JSPandaFile *jsPandaFile) in CreateAllConstpool() argument
497 auto headers = jsPandaFile->GetPandaFile()->GetIndexHeaders(); in CreateAllConstpool()
502 constpool->SetJSPandaFile(jsPandaFile); in CreateAllConstpool()
504 AddConstpool(jsPandaFile, constpool.GetTaggedValue(), index++); in CreateAllConstpool()
508 void EcmaContext::AddConstpool(const JSPandaFile *jsPandaFile, JSTaggedValue constpool, int32_t ind… in AddConstpool() argument
511 if (cachedConstpools_.find(jsPandaFile) == cachedConstpools_.end()) { in AddConstpool()
512 cachedConstpools_[jsPandaFile] = CMap<int32_t, JSTaggedValue>(); in AddConstpool()
514 auto &constpoolMap = cachedConstpools_[jsPandaFile]; in AddConstpool()
586 void EcmaContext::RelocateConstantString(const JSPandaFile *jsPandaFile) in RelocateConstantString() argument
588 if (!jsPandaFile->IsFirstMergedAbc()) { in RelocateConstantString()
591 vm_->GetEcmaStringTable()->RelocateConstantData(jsPandaFile); in RelocateConstantString()