Home
last modified time | relevance | path

Searched refs:SourceTextModule (Results 1 – 25 of 29) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.h37 class SourceTextModule final : public ModuleRecord {
41 CAST_CHECK(SourceTextModule, IsSourceTextModule);
45 … const JSHandle<SourceTextModule> &module,
48 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR…
51 …static CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &m…
55 …static JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &m…
57 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector);
58 …ndle<JSTaggedValue> ResolveExportObject(JSThread *thread, const JSHandle<SourceTextModule> &module,
63 CVector<JSHandle<SourceTextModule>> &stack, int index);
66 …static void ModuleDeclarationEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &…
[all …]
Djs_module_source_text.cpp32 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()
[all …]
Djs_module_record.cpp23 return SourceTextModule::Instantiate(thread, module); in Instantiate()
31 JSHandle<SourceTextModule> moduleRecord = JSHandle<SourceTextModule>::Cast(module); in Evaluate()
32 return SourceTextModule::Evaluate(thread, moduleRecord); in Evaluate()
40 return SourceTextModule::Cast(module.GetTaggedObject())->GetNamespace(); in GetNamespace()
48 SourceTextModule::Cast(module.GetTaggedObject())->SetNamespace(thread, value); in SetNamespace()
Djs_module_manager.cpp69 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
78 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
89 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName()
111 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal()
121 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal()
130 return SourceTextModule::Cast( in GetModuleValueOutterInternal()
135 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal()
149 SourceTextModule::Cast(resolvedModule.GetTaggedObject())->GetModuleValue(thread, 0, false)); in GetNativeModuleValue()
151 JSHandle<JSTaggedValue> curModuleName(thread, SourceTextModule::Cast( in GetNativeModuleValue()
169 JSHandle<JSTaggedValue> curModuleName(thread, SourceTextModule::Cast( in GetCJSModuleValue()
[all …]
Djs_module_manager.h53 JSHandle<SourceTextModule> HostGetImportedModule(const CString &referencingModule);
54 JSHandle<SourceTextModule> HostGetImportedModule(JSTaggedValue referencing);
57 …JSHandle<SourceTextModule> ResolveNativeModule(const CString &moduleRequestName, ModuleTypes modul…
77 …static int GetExportObjectIndex(EcmaVM *vm, JSHandle<SourceTextModule> ecmaModule, const std::stri…
87 static bool LoadNativeModule(JSThread *thread, JSHandle<SourceTextModule> &requiredModule,
94 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
105 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
Djs_module_namespace.cpp85 JSHandle<SourceTextModule> mm(thread, moduleNamespace->GetModule()); in GetProperty()
87 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveSet; in GetProperty()
88 JSHandle<JSTaggedValue> binding = SourceTextModule::ResolveExport(thread, mm, key, resolveSet); in GetProperty()
99 result = SourceTextModule::Cast(targetModule.GetTaggedObject())-> in GetProperty()
106 result = SourceTextModule::Cast(targetModule.GetTaggedObject())-> in GetProperty()
277 JSHandle<SourceTextModule> mm(thread, moduleNamespace->GetModule()); in ValidateKeysAvailable()
281 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveSet; in ValidateKeysAvailable()
282 … JSHandle<JSTaggedValue> binding = SourceTextModule::ResolveExport(thread, mm, key, resolveSet); in ValidateKeysAvailable()
292 …JSTaggedValue dictionary = SourceTextModule::Cast(targetModule.GetTaggedObject())->GetNameDictiona… in ValidateKeysAvailable()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp73 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
75 SourceTextModule::AddImportEntry(thread, module, importEntry1, 0, 2); in HWTEST_F_L0()
77 SourceTextModule::AddImportEntry(thread, module, importEntry2, 1, 2); in HWTEST_F_L0()
92 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
94 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry1, 0, 2); in HWTEST_F_L0()
96 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry2, 1, 2); in HWTEST_F_L0()
111 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
113 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry1, 0, 2); in HWTEST_F_L0()
115 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry2, 1, 2); in HWTEST_F_L0()
130 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/
Dmodule_data_accessor.h45 JSHandle<SourceTextModule> &moduleRecord);
47 void EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &moduleRecord);
50 JSHandle<SourceTextModule> &moduleRecord);
53 JSHandle<SourceTextModule> &moduleRecord);
Dmodule_data_accessor.cpp39 JSHandle<SourceTextModule> &moduleRecord) in EnumerateImportEntry()
93 void ModuleDataAccessor::EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &mo… in EnumerateLocalExportEntry()
130 JSHandle<SourceTextModule> &moduleRecord) in EnumerateIndirectExportEntry()
168 JSHandle<SourceTextModule> &moduleRecord) in EnumerateStarExportEntry()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dmodule_data_extractor.cpp47 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseModule()
62 JSHandle<SourceTextModule> &moduleRecord) in ExtractModuleDatas()
90 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseCjsModule()
97SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseCjsModule()
109 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseJsonModule()
113SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseJsonModule()
131 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseNativeModule()
138 SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); in ParseNativeModule()
Djs_pandafile_executor.cpp92 SourceTextModule::Instantiate(thread, moduleRecord); in ExecuteFromFile()
99 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in ExecuteFromFile()
101 SourceTextModule::Evaluate(thread, module, nullptr, 0, excuteFromJob); in ExecuteFromFile()
182 SourceTextModule::Instantiate(thread, moduleRecord); in CommonExecuteBuffer()
187 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in CommonExecuteBuffer()
189 SourceTextModule::Evaluate(thread, module, buffer, size); in CommonExecuteBuffer()
Dquick_fix_loader.h70 static bool CheckIsModuleMismatch(JSThread *thread, JSHandle<SourceTextModule> patchModule,
71 JSHandle<SourceTextModule> baseModule);
Dmodule_data_extractor.h36 JSHandle<SourceTextModule> &moduleRecord);
Dquick_fix_loader.cpp518 JSHandle<SourceTextModule> patchModule = in CheckIsInvalidPatch()
519 JSHandle<SourceTextModule>::Cast(moduleManager->ResolveModuleWithMerge(thread, in CheckIsInvalidPatch()
521 … JSHandle<SourceTextModule> baseModule = moduleManager->HostGetImportedModule(baseRecordName); in CheckIsInvalidPatch()
531 bool QuickFixLoader::CheckIsModuleMismatch(JSThread *thread, JSHandle<SourceTextModule> patchModule, in CheckIsModuleMismatch()
532 JSHandle<SourceTextModule> baseModule) in CheckIsModuleMismatch()
Dliteral_data_extractor.cpp271 … JSHandle<SourceTextModule> module = vm->GetModuleManager()->HostGetImportedModule(moduleName); in DefineMethodInLiteral()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp195 JSHandle<SourceTextModule> moduleRecord = in DynamicImportJob()
198 moduleNamespace.Update(SourceTextModule::GetModuleNamespace(thread, moduleRecord)); in DynamicImportJob()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.h36 class SourceTextModule; variable
Ddebugger_api.cpp352 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetNameDictio… in GetModuleVariables()
360 JSTaggedValue localExportEntries = SourceTextModule::Cast( in GetModuleVariables()
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.h145 class SourceTextModule; variable
582 JSHandle<SourceTextModule> NewSourceTextModule();
584 JSHandle<ResolvedBinding> NewResolvedBindingRecord(const JSHandle<SourceTextModule> &module,
587 …JSHandle<ResolvedIndexBinding> NewResolvedIndexBindingRecord(const JSHandle<SourceTextModule> &mod…
Dobject_factory.cpp3867 JSHandle<SourceTextModule> ObjectFactory::NewSourceTextModule() in NewSourceTextModule()
3872 JSHandle<SourceTextModule> obj(thread_, header); in NewSourceTextModule()
3884 obj->SetDFSIndex(SourceTextModule::UNDEFINED_INDEX); in NewSourceTextModule()
3885 obj->SetDFSAncestorIndex(SourceTextModule::UNDEFINED_INDEX); in NewSourceTextModule()
3886 obj->SetEvaluationError(SourceTextModule::UNDEFINED_INDEX); in NewSourceTextModule()
3896 JSHandle<SourceTextModule> ecmaModule(undefinedValue); in NewResolvedBindingRecord()
3901 JSHandle<ResolvedBinding> ObjectFactory::NewResolvedBindingRecord(const JSHandle<SourceTextModule> … in NewResolvedBindingRecord()
3916 JSHandle<SourceTextModule> ecmaModule(undefinedValue); in NewResolvedIndexBindingRecord()
3921 …ndexBinding> ObjectFactory::NewResolvedIndexBindingRecord(const JSHandle<SourceTextModule> &module, in NewResolvedIndexBindingRecord()
Djs_function.cpp712 …JSTaggedValue recordName = SourceTextModule::Cast(module.GetTaggedObject())->GetEcmaModuleRecordN… in GetRecordName()
Decma_vm.cpp504 JSHandle<SourceTextModule> module = moduleManager_->HostGetImportedModule(moduleName); in InvokeEcmaEntrypoint()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp667 JSHandle<ecmascript::SourceTextModule> ecmaModule = moduleManager->HostGetImportedModule(entry); in GetExportObject()
687 …JSHandle<ecmascript::SourceTextModule> ecmaModule = moduleManager->HostGetImportedModule(file.c_st… in GetExportObjectFromBuffer()
2772 ecmascript::SourceTextModule::Instantiate(thread, moduleRecord); in InitForConcurrentFunction()
2778 …JSHandle<ecmascript::SourceTextModule> module = JSHandle<ecmascript::SourceTextModule>::Cast(modul… in InitForConcurrentFunction()
2780 ecmascript::SourceTextModule::EvaluateForConcurrent(thread, module); in InitForConcurrentFunction()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h576 SourceTextModule::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp1253 CHECK_DUMP_FIELDS(ModuleRecord::SIZE, SourceTextModule::SIZE, 12U); in HWTEST_F_L0()
1254 JSHandle<SourceTextModule> moduleSourceRecord = factory->NewSourceTextModule(); in HWTEST_F_L0()

12