• Home
  • Raw
  • Download

Lines Matching refs:SourceTextModule

32 CVector<std::string> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceText…  in GetExportedNames()
77 JSHandle<JSTaggedValue> SourceTextModule::HostResolveImportedModuleWithMerge( in HostResolveImportedModuleWithMerge()
78 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR… in HostResolveImportedModuleWithMerge()
116 JSHandle<JSTaggedValue> SourceTextModule::HostResolveImportedModule(JSThread *thread, in HostResolveImportedModule()
117 const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleRequest) in HostResolveImportedModule()
133 bool SourceTextModule::CheckCircularImport(const JSHandle<SourceTextModule> &module, in CheckCircularImport()
135 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector) in CheckCircularImport() argument
150 JSHandle<JSTaggedValue> SourceTextModule::ResolveExportObject(JSThread *thread, in ResolveExportObject()
151 const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &exportObject, in ResolveExportObject()
177 JSHandle<JSTaggedValue> SourceTextModule::ResolveExport(JSThread *thread, const JSHandle<SourceText… in ResolveExport()
179 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector) in ResolveExport() argument
239 void SourceTextModule::InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> &currentMo… in InstantiateCJS()
240 const JSHandle<SourceTextModule> &requiredModule) in InstantiateCJS()
258 void SourceTextModule::InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> &curren… in InstantiateNativeModule()
259 JSHandle<SourceTextModule> &requiredModule, const JSHandle<JSTaggedValue> &moduleRequest, in InstantiateNativeModule()
275 void SourceTextModule::InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> &cu… in InitializeEnvironment()
296 JSHandle<SourceTextModule> requestedModule = GetModuleFromBinding(thread, resolvedBinding); in InitializeEnvironment()
311 SourceTextModule::ResolveExportObject(thread, requestedModule, exports, importName); in InitializeEnvironment()
328 JSHandle<SourceTextModule> SourceTextModule::GetModuleFromBinding(JSThread *thread, in GetModuleFromBinding()
333 return JSHandle<SourceTextModule>(thread, binding->GetModule()); in GetModuleFromBinding()
336 return JSHandle<SourceTextModule>(thread, binding->GetModule()); in GetModuleFromBinding()
339 int SourceTextModule::Instantiate(JSThread *thread, const JSHandle<JSTaggedValue> &moduleHdl) in Instantiate()
341 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, SourceTextModule::UNDEFINED_INDEX); in Instantiate()
342 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleHdl); in Instantiate()
347 CVector<JSHandle<SourceTextModule>> stack; in Instantiate()
350 int result = SourceTextModule::InnerModuleInstantiation(thread, moduleRecord, stack, 0); in Instantiate()
361 mm->SetDFSIndex(SourceTextModule::UNDEFINED_INDEX); in Instantiate()
363 mm->SetDFSAncestorIndex(SourceTextModule::UNDEFINED_INDEX); in Instantiate()
375 return SourceTextModule::UNDEFINED_INDEX; in Instantiate()
378 int SourceTextModule::InnerModuleInstantiation(JSThread *thread, const JSHandle<ModuleRecord> &modu… in InnerModuleInstantiation()
379 … CVector<JSHandle<SourceTextModule>> &stack, int index) in InnerModuleInstantiation()
389 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in InnerModuleInstantiation()
417 …JSMutableHandle<SourceTextModule> requiredModule(thread, thread->GlobalConstants()->GetUndefined()… in InnerModuleInstantiation()
421 SourceTextModule::HostResolveImportedModule(thread, module, required); in InnerModuleInstantiation()
422 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, SourceTextModule::UNDEFINED_INDEX); in InnerModuleInstantiation()
423 requiredModule.Update(JSHandle<SourceTextModule>::Cast(requiredVal)); in InnerModuleInstantiation()
428 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, required); in InnerModuleInstantiation()
429 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, SourceTextModule::UNDEFINED_INDEX); in InnerModuleInstantiation()
430 requiredModule.Update(JSHandle<SourceTextModule>::Cast(requiredVal)); in InnerModuleInstantiation()
436 … index = SourceTextModule::InnerModuleInstantiation(thread, requiredModuleRecord, stack, index); in InnerModuleInstantiation()
459 SourceTextModule::ModuleDeclarationArrayEnvironmentSetup(thread, module); in InnerModuleInstantiation()
461 SourceTextModule::ModuleDeclarationEnvironmentSetup(thread, module); in InnerModuleInstantiation()
476 JSHandle<SourceTextModule> requiredModule = stack.back(); in InnerModuleInstantiation()
490 void SourceTextModule::ModuleDeclarationEnvironmentSetup(JSThread *thread, in ModuleDeclarationEnvironmentSetup()
491 const JSHandle<SourceTextModule> &module) in ModuleDeclarationEnvironmentSetup()
523 …JSMutableHandle<SourceTextModule> importedModule(thread, thread->GlobalConstants()->GetUndefined()… in ModuleDeclarationEnvironmentSetup()
527 SourceTextModule::HostResolveImportedModule(thread, module, moduleRequest); in ModuleDeclarationEnvironmentSetup()
529 importedModule.Update(JSHandle<SourceTextModule>::Cast(importedVal)); in ModuleDeclarationEnvironmentSetup()
533 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, moduleRequest); in ModuleDeclarationEnvironmentSetup()
535 importedModule.Update(JSHandle<SourceTextModule>::Cast(importedVal)); in ModuleDeclarationEnvironmentSetup()
541 …JSHandle<JSTaggedValue> moduleNamespace = SourceTextModule::GetModuleNamespace(thread, importedMod… in ModuleDeclarationEnvironmentSetup()
550 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveVector; in ModuleDeclarationEnvironmentSetup()
552 SourceTextModule::ResolveExport(thread, importedModule, importName, resolveVector); in ModuleDeclarationEnvironmentSetup()
578 void SourceTextModule::ModuleDeclarationArrayEnvironmentSetup(JSThread *thread, in ModuleDeclarationArrayEnvironmentSetup()
579 … const JSHandle<SourceTextModule> &module) in ModuleDeclarationArrayEnvironmentSetup()
608 …JSMutableHandle<SourceTextModule> importedModule(thread, thread->GlobalConstants()->GetUndefined()… in ModuleDeclarationArrayEnvironmentSetup()
612 SourceTextModule::HostResolveImportedModule(thread, module, moduleRequest); in ModuleDeclarationArrayEnvironmentSetup()
614 importedModule.Update(JSHandle<SourceTextModule>::Cast(importedVal)); in ModuleDeclarationArrayEnvironmentSetup()
618 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, moduleRequest); in ModuleDeclarationArrayEnvironmentSetup()
620 importedModule.Update(JSHandle<SourceTextModule>::Cast(importedVal)); in ModuleDeclarationArrayEnvironmentSetup()
629 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveVector; in ModuleDeclarationArrayEnvironmentSetup()
631 SourceTextModule::ResolveExport(thread, importedModule, importName, resolveVector); in ModuleDeclarationArrayEnvironmentSetup()
653 JSHandle<JSTaggedValue> SourceTextModule::GetModuleNamespace(JSThread *thread, in GetModuleNamespace()
654 … const JSHandle<SourceTextModule> &module) in GetModuleNamespace()
663 ASSERT(module->GetEvaluationError() == SourceTextModule::UNDEFINED_INDEX); in GetModuleNamespace()
671 …CVector<std::string> exportedNames = SourceTextModule::GetExportedNames(thread, module, exportStar… in GetModuleNamespace()
678 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveVector; in GetModuleNamespace()
681 SourceTextModule::ResolveExport(thread, module, nameHandle, resolveVector); in GetModuleNamespace()
697 int SourceTextModule::Evaluate(JSThread *thread, const JSHandle<SourceTextModule> &module, in Evaluate()
705 CVector<JSHandle<SourceTextModule>> stack; in Evaluate()
708 …int result = SourceTextModule::InnerModuleEvaluation(thread, moduleRecord, stack, 0, buffer, size,… in Evaluate()
728 …ASSERT(status == ModuleStatus::EVALUATED && module->GetEvaluationError() == SourceTextModule::UNDE… in Evaluate()
732 return SourceTextModule::UNDEFINED_INDEX; in Evaluate()
735 int SourceTextModule::EvaluateForConcurrent(JSThread *thread, const JSHandle<SourceTextModule> &mod… in EvaluateForConcurrent()
742 CVector<JSHandle<SourceTextModule>> stack; in EvaluateForConcurrent()
745 int result = SourceTextModule::ModuleEvaluation(thread, moduleRecord, stack, 0); in EvaluateForConcurrent()
763 ASSERT(module->GetEvaluationError() == SourceTextModule::UNDEFINED_INDEX); in EvaluateForConcurrent()
767 return SourceTextModule::UNDEFINED_INDEX; in EvaluateForConcurrent()
770 int SourceTextModule::InnerModuleEvaluation(JSThread *thread, const JSHandle<ModuleRecord> &moduleR… in InnerModuleEvaluation()
771 CVector<JSHandle<SourceTextModule>> &stack, int index, in InnerModuleEvaluation()
782 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in InnerModuleEvaluation()
787 if (module->GetEvaluationError() == SourceTextModule::UNDEFINED_INDEX) { in InnerModuleEvaluation()
817 …JSMutableHandle<SourceTextModule> requiredModule(thread, thread->GlobalConstants()->GetUndefined()… in InnerModuleEvaluation()
821 SourceTextModule::HostResolveImportedModule(thread, module, required); in InnerModuleEvaluation()
822 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, SourceTextModule::UNDEFINED_INDEX); in InnerModuleEvaluation()
823 requiredModule.Update(JSHandle<SourceTextModule>::Cast(requiredVal)); in InnerModuleEvaluation()
827 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, required); in InnerModuleEvaluation()
828 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, SourceTextModule::UNDEFINED_INDEX); in InnerModuleEvaluation()
829 requiredModule.Update(JSHandle<SourceTextModule>::Cast(requiredVal)); in InnerModuleEvaluation()
844 … index = SourceTextModule::InnerModuleEvaluation(thread, requiredModuleRecord, stack, index); in InnerModuleEvaluation()
870 SourceTextModule::ModuleExecution(thread, module, buffer, size, excuteFromJob); in InnerModuleEvaluation()
884 JSHandle<SourceTextModule> requiredModule = stack.back(); in InnerModuleEvaluation()
898 int SourceTextModule::ModuleEvaluation(JSThread *thread, const JSHandle<ModuleRecord> &moduleRecord, in ModuleEvaluation()
899 CVector<JSHandle<SourceTextModule>> &stack, int index) in ModuleEvaluation()
901 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in ModuleEvaluation()
908 …JSMutableHandle<SourceTextModule> requiredModule(thread, thread->GlobalConstants()->GetUndefined()… in ModuleEvaluation()
911 … requiredModule.Update(SourceTextModule::HostResolveImportedModule(thread, module, required)); in ModuleEvaluation()
914 …requiredModule.Update(SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, require… in ModuleEvaluation()
927 … index = SourceTextModule::InnerModuleEvaluation(thread, requiredModuleRecord, stack, index); in ModuleEvaluation()
939 void SourceTextModule::ModuleExecution(JSThread *thread, const JSHandle<SourceTextModule> &module, in ModuleExecution()
972 void SourceTextModule::AddImportEntry(JSThread *thread, const JSHandle<SourceTextModule> &module, in AddImportEntry()
993 void SourceTextModule::AddLocalExportEntry(JSThread *thread, const JSHandle<SourceTextModule> &modu… in AddLocalExportEntry()
1008 void SourceTextModule::AddIndirectExportEntry(JSThread *thread, const JSHandle<SourceTextModule> &m… in AddIndirectExportEntry()
1024 void SourceTextModule::AddStarExportEntry(JSThread *thread, const JSHandle<SourceTextModule> &modul… in AddStarExportEntry()
1039 JSTaggedValue SourceTextModule::GetModuleValue(JSThread *thread, int32_t index, bool isThrow) in GetModuleValue()
1054 JSTaggedValue SourceTextModule::GetModuleValue(JSThread *thread, JSTaggedValue key, bool isThrow) in GetModuleValue()
1083 JSTaggedValue SourceTextModule::FindByExport(const JSTaggedValue &exportEntriesTv, const JSTaggedVa… in FindByExport()
1105 void SourceTextModule::StoreModuleValue(JSThread *thread, int32_t index, const JSHandle<JSTaggedVal… in StoreModuleValue()
1107 JSHandle<SourceTextModule> module(thread, this); in StoreModuleValue()
1123 void SourceTextModule::StoreModuleValue(JSThread *thread, const JSHandle<JSTaggedValue> &key, in StoreModuleValue()
1126 JSHandle<SourceTextModule> module(thread, this); in StoreModuleValue()
1138 void SourceTextModule::SetExportName(JSThread *thread, const JSHandle<JSTaggedValue> &moduleRequest, in SetExportName()
1139 const JSHandle<SourceTextModule> &module, in SetExportName()
1143 …JSMutableHandle<SourceTextModule> requestedModule(thread, thread->GlobalConstants()->GetUndefined(… in SetExportName()
1147 SourceTextModule::HostResolveImportedModule(thread, module, moduleRequest); in SetExportName()
1149 requestedModule.Update(JSHandle<SourceTextModule>::Cast(requestedVal)); in SetExportName()
1153 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, moduleRequest); in SetExportName()
1155 requestedModule.Update(JSHandle<SourceTextModule>::Cast(requestedVal)); in SetExportName()
1159 SourceTextModule::GetExportedNames(thread, requestedModule, newExportStarSet); in SetExportName()
1171 JSHandle<JSTaggedValue> SourceTextModule::GetStarResolution(JSThread *thread, in GetStarResolution()
1174 … const JSHandle<SourceTextModule> &module, in GetStarResolution()
1176 … CVector<std::pair<JSHandle<SourceTextModule>, in GetStarResolution() argument
1181 …JSMutableHandle<SourceTextModule> importedModule(thread, thread->GlobalConstants()->GetUndefined()… in GetStarResolution()
1185 SourceTextModule::HostResolveImportedModule(thread, module, moduleRequest); in GetStarResolution()
1187 importedModule.Update(JSHandle<SourceTextModule>::Cast(importedVal)); in GetStarResolution()
1191 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, moduleRequest); in GetStarResolution()
1193 importedModule.Update(JSHandle<SourceTextModule>::Cast(importedVal)); in GetStarResolution()
1197 SourceTextModule::ResolveExport(thread, importedModule, exportName, resolveVector); in GetStarResolution()
1239 void SourceTextModule::AddExportName(JSThread *thread, const JSTaggedValue &exportEntry, in AddExportName()
1256 JSHandle<JSTaggedValue> SourceTextModule::ResolveElementOfObject(JSThread *thread, in ResolveElementOfObject()
1259 … const JSHandle<SourceTextModule> &module) in ResolveElementOfObject()
1272 JSHandle<JSTaggedValue> SourceTextModule::ResolveLocalExport(JSThread *thread, in ResolveLocalExport()
1275 … const JSHandle<SourceTextModule> &module) in ResolveLocalExport()
1308 JSHandle<JSTaggedValue> SourceTextModule::ResolveIndirectExport(JSThread *thread, in ResolveIndirectExport()
1311 … const JSHandle<SourceTextModule> &module, in ResolveIndirectExport()
1312 … CVector<std::pair<JSHandle<SourceTextModule>, in ResolveIndirectExport() argument
1328 …JSMutableHandle<SourceTextModule> requestedModule(thread, thread->GlobalConstants()->GetUndefined(… in ResolveIndirectExport()
1331 …requestedModule.Update(SourceTextModule::HostResolveImportedModule(thread, module, moduleRequest)); in ResolveIndirectExport()
1335SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, moduleRequest)); in ResolveIndirectExport()
1340 … return SourceTextModule::ResolveExport(thread, requestedModule, importName, resolveVector); in ResolveIndirectExport()
1346 void SourceTextModule::CheckResolvedBinding(JSThread *thread, const JSHandle<SourceTextModule> &mod… in CheckResolvedBinding()
1363 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveVector; in CheckResolvedBinding()
1365 SourceTextModule::ResolveExport(thread, module, exportName, resolveVector); in CheckResolvedBinding()
1384 void SourceTextModule::CheckResolvedIndexBinding(JSThread *thread, const JSHandle<SourceTextModule>… in CheckResolvedIndexBinding()
1401 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveVector; in CheckResolvedIndexBinding()
1403 SourceTextModule::ResolveExport(thread, module, exportName, resolveVector); in CheckResolvedIndexBinding()