• Home
  • Raw
  • Download

Lines Matching refs:jsPandaFile

177         std::shared_ptr<JSPandaFile> jsPandaFile =  in ~EcmaContext()  local
179 if (jsPandaFile != nullptr) { in ~EcmaContext()
180 jsPandaFile->DeleteParsedConstpoolVM(vm_); in ~EcmaContext()
219 … const JSPandaFile *jsPandaFile, std::string_view entryPoint, in InvokeEcmaAotEntrypoint() argument
222 aotFileManager_->SetAOTMainFuncEntry(mainFunc, jsPandaFile, entryPoint); in InvokeEcmaAotEntrypoint()
241 Expected<JSTaggedValue, bool> EcmaContext::InvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile, in InvokeEcmaEntrypoint() argument
245 …JSHandle<Program> program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, e… in InvokeEcmaEntrypoint()
252 jsPandaFile->GetJSPandaFileDesc(), entryPoint); in InvokeEcmaEntrypoint()
259 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entry, recordInfo); in InvokeEcmaEntrypoint()
265 if (jsPandaFile->IsModule(recordInfo)) { in InvokeEcmaEntrypoint()
267 CString moduleName = jsPandaFile->GetJSPandaFileDesc(); in InvokeEcmaEntrypoint()
268 if (!jsPandaFile->IsBundlePack()) { in InvokeEcmaEntrypoint()
282 if (jsPandaFile->IsCjs(recordInfo)) { in InvokeEcmaEntrypoint()
283 CJSExecution(func, global, jsPandaFile, entryPoint); in InvokeEcmaEntrypoint()
285 if (aotFileManager_->IsLoadMain(jsPandaFile, entry)) { in InvokeEcmaEntrypoint()
287 result = InvokeEcmaAotEntrypoint(func, global, jsPandaFile, entryPoint); in InvokeEcmaEntrypoint()
310 const JSPandaFile *jsPandaFile, std::string_view entryPoint) in CJSExecution() argument
318 if (jsPandaFile->IsBundlePack()) { in CJSExecution()
319 ModulePathHelper::ResolveCurrentPath(thread_, dirname, filename, jsPandaFile); in CJSExecution()
328 if (aotFileManager_->IsLoadMain(jsPandaFile, entryPoint.data())) { in CJSExecution()
330 InvokeEcmaAotEntrypoint(func, thisArg, jsPandaFile, entryPoint, &cjsInfo); in CJSExecution()
361 bool EcmaContext::HasCachedConstpool(const JSPandaFile *jsPandaFile) const in HasCachedConstpool()
363 return cachedConstpools_.find(jsPandaFile) != cachedConstpools_.end(); in HasCachedConstpool()
366 JSTaggedValue EcmaContext::FindConstpool(const JSPandaFile *jsPandaFile, int32_t index) in FindConstpool() argument
368 auto iter = cachedConstpools_.find(jsPandaFile); in FindConstpool()
380 const JSPandaFile *jsPandaFile) in FindConstpools() argument
382 auto iter = cachedConstpools_.find(jsPandaFile); in FindConstpools()
390 JSTaggedValue EcmaContext::FindConstpool(const JSPandaFile *jsPandaFile, panda_file::File::EntityId… in FindConstpool() argument
392 panda_file::IndexAccessor indexAccessor(*jsPandaFile->GetPandaFile(), id); in FindConstpool()
394 return FindConstpool(jsPandaFile, index); in FindConstpool()
397 JSHandle<ConstantPool> EcmaContext::FindOrCreateConstPool(const JSPandaFile *jsPandaFile, panda_fil… in FindOrCreateConstPool() argument
399 panda_file::IndexAccessor indexAccessor(*jsPandaFile->GetPandaFile(), id); in FindOrCreateConstPool()
401 JSTaggedValue constpool = FindConstpool(jsPandaFile, index); in FindOrCreateConstPool()
403 JSHandle<ConstantPool> newConstpool = ConstantPool::CreateConstPool(vm_, jsPandaFile, id); in FindOrCreateConstPool()
404 AddConstpool(jsPandaFile, newConstpool.GetTaggedValue(), index); in FindOrCreateConstPool()
411 void EcmaContext::CreateAllConstpool(const JSPandaFile *jsPandaFile) in CreateAllConstpool() argument
413 auto headers = jsPandaFile->GetPandaFile()->GetIndexHeaders(); in CreateAllConstpool()
418 constpool->SetJSPandaFile(jsPandaFile); in CreateAllConstpool()
420 AddConstpool(jsPandaFile, constpool.GetTaggedValue(), index++); in CreateAllConstpool()
424 void EcmaContext::AddConstpool(const JSPandaFile *jsPandaFile, JSTaggedValue constpool, int32_t ind… in AddConstpool() argument
427 if (cachedConstpools_.find(jsPandaFile) == cachedConstpools_.end()) { in AddConstpool()
428 cachedConstpools_[jsPandaFile] = CMap<int32_t, JSTaggedValue>(); in AddConstpool()
430 auto &constpoolMap = cachedConstpools_[jsPandaFile]; in AddConstpool()