Home
last modified time | relevance | path

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

12

/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.h52 class SourceTextModule final : public ModuleRecord {
63 …bool operator()(const JSHandle<SourceTextModule> &lhs, const JSHandle<SourceTextModule> &rhs) const in operator()
69 CSet<JSHandle<SourceTextModule>, AsyncEvaluatingOrdinalCompare>;
71 CAST_CHECK(SourceTextModule, IsSourceTextModule);
75 … const JSHandle<SourceTextModule> &module,
78 … const JSHandle<SourceTextModule> &module,
82 …static CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &m…
86 …static JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &m…
88 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector);
89 …ndle<JSTaggedValue> ResolveExportObject(JSThread *thread, const JSHandle<SourceTextModule> &module,
[all …]
Djs_module_source_text.cpp40 CVector<std::string> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceText… in GetExportedNames()
85 JSHandle<JSTaggedValue> SourceTextModule::HostResolveImportedModuleWithMerge( in HostResolveImportedModuleWithMerge()
86 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR… in HostResolveImportedModuleWithMerge()
109 auto [isNative, moduleType] = SourceTextModule::CheckNativeModule(moduleRequestName); in HostResolveImportedModuleWithMerge()
143 JSHandle<JSTaggedValue> SourceTextModule::HostResolveImportedModule(JSThread *thread, in HostResolveImportedModule()
144 … const JSHandle<SourceTextModule> &module, in HostResolveImportedModule()
161 bool SourceTextModule::CheckCircularImport(const JSHandle<SourceTextModule> &module, in CheckCircularImport()
163 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> &resolveVector) in CheckCircularImport() argument
178 JSHandle<JSTaggedValue> SourceTextModule::ResolveExportObject(JSThread *thread, in ResolveExportObject()
179 … const JSHandle<SourceTextModule> &module, in ResolveExportObject()
[all …]
Djs_module_record.cpp23 STACK_LIMIT_CHECK(thread, SourceTextModule::UNDEFINED_INDEX); in Instantiate()
25 return SourceTextModule::Instantiate(thread, module); in Instantiate()
34 JSHandle<SourceTextModule> moduleRecord = JSHandle<SourceTextModule>::Cast(module); in Evaluate()
35 return SourceTextModule::Evaluate(thread, moduleRecord); in Evaluate()
44 return SourceTextModule::Cast(module.GetTaggedObject())->GetNamespace(); in GetNamespace()
53 SourceTextModule::Cast(module.GetTaggedObject())->SetNamespace(thread, value); in SetNamespace()
Djs_module_deregister.cpp47 JSHandle<SourceTextModule> module(thread, SourceTextModule::Cast(moduleVal.GetTaggedObject())); in FreeModuleRecord()
49 JSTaggedValue moduleRecordName = SourceTextModule::GetModuleName(module.GetTaggedValue()); in FreeModuleRecord()
71 JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule(moduleName); in ReviseLoadedModuleCount()
85 void ModuleDeregister::RemoveModule(JSThread *thread, JSHandle<SourceTextModule> module) in RemoveModule()
87 JSTaggedValue moduleRecordName = SourceTextModule::GetModuleName(module.GetTaggedValue()); in RemoveModule()
105 void ModuleDeregister::IncreaseRegisterCounts(JSThread *thread, JSHandle<SourceTextModule> module, in IncreaseRegisterCounts()
114 …JSMutableHandle<SourceTextModule> requiredModule(thread, thread->GlobalConstants()->GetUndefined()… in IncreaseRegisterCounts()
119 SourceTextModule::HostResolveImportedModule(thread, module, required); in IncreaseRegisterCounts()
121 requiredModule.Update(JSHandle<SourceTextModule>::Cast(requiredVal)); in IncreaseRegisterCounts()
126 SourceTextModule::HostResolveImportedModuleWithMerge(thread, module, required); in IncreaseRegisterCounts()
[all …]
Djs_module_deregister.h33 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in InitForDeregisterModule()
37 ConvertToString(SourceTextModule::GetModuleName(moduleRecord.GetTaggedValue()))); in InitForDeregisterModule()
43 JSHandle<SourceTextModule> moduleRecord(thread, nameSp->GetModule()); in ProcessModuleReference()
50 static void RemoveModule(JSThread *thread, JSHandle<SourceTextModule> module);
54 static void IncreaseRegisterCounts(JSThread *thread, JSHandle<SourceTextModule> module,
57 static void DecreaseRegisterCounts(JSThread *thread, JSHandle<SourceTextModule> module,
Djs_module_manager.cpp60 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
69 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
77 …return SourceTextModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread()… in GetModuleValueInner()
104 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal()
114 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal()
128 if (SourceTextModule::IsNativeModule(moduleType)) { in GetModuleValueOutterInternal()
134 return SourceTextModule::Cast( in GetModuleValueOutterInternal()
139 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal()
140 if (SourceTextModule::IsNativeModule(module->GetTypes())) { in GetModuleValueOutterInternal()
144 …JSHandle<JSTaggedValue> cjsModuleName(thread, SourceTextModule::GetModuleName(JSTaggedValue(module… in GetModuleValueOutterInternal()
[all …]
Djs_dynamic_import.cpp38 JSHandle<SourceTextModule> moduleRecord = in ExecuteNativeOrJsonModule()
43 JSHandle<SourceTextModule> moduleRecord(thread, thread->GlobalConstants()->GetUndefined()); in ExecuteNativeOrJsonModule()
47 moduleRecord = JSHandle<SourceTextModule>::Cast(nativeModuleHld); in ExecuteNativeOrJsonModule()
48 if (!SourceTextModule::LoadNativeModule(thread, moduleRecord, moduleType)) { in ExecuteNativeOrJsonModule()
53 moduleRecord = JSHandle<SourceTextModule>::Cast(ModuleDataExtractor::ParseJsonModule( in ExecuteNativeOrJsonModule()
63 JSHandle<JSTaggedValue> moduleNamespace = SourceTextModule::GetModuleNamespace(thread, in ExecuteNativeOrJsonModule()
64 JSHandle<SourceTextModule>(requiredModule)); in ExecuteNativeOrJsonModule()
Djs_module_namespace.cpp88 JSHandle<SourceTextModule> mm(thread, moduleNamespace->GetModule()); in GetProperty()
90 CVector<std::pair<JSHandle<SourceTextModule>, JSHandle<JSTaggedValue>>> resolveSet; in GetProperty()
91 JSHandle<JSTaggedValue> binding = SourceTextModule::ResolveExport(thread, mm, key, resolveSet); in GetProperty()
102 if (UNLIKELY(SourceTextModule::IsNativeModule(mm->GetTypes()))) { in GetProperty()
103 result = SourceTextModule::Cast(mm.GetTaggedValue())-> in GetProperty()
106 result = SourceTextModule::Cast(targetModule.GetTaggedObject())-> in GetProperty()
114 if (UNLIKELY(SourceTextModule::IsNativeModule(mm->GetTypes()))) { in GetProperty()
115 result = SourceTextModule::Cast(mm.GetTaggedValue())-> in GetProperty()
118 result = SourceTextModule::Cast(targetModule.GetTaggedObject())-> in GetProperty()
308 JSHandle<SourceTextModule> mm(thread, moduleNamespace->GetModule()); in ValidateKeysAvailable()
[all …]
Dmodule_data_extractor.cpp48 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseModule()
66 JSHandle<SourceTextModule> &moduleRecord) in ExtractModuleDatas()
94 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseCjsModule()
102SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseCjsModule()
114 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseJsonModule()
119SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseJsonModule()
137 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseNativeModule()
145 SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); in ParseNativeModule()
Djs_module_manager.h55 JSHandle<SourceTextModule> HostGetImportedModule(const CString &referencingModule);
56 JSHandle<SourceTextModule> HostGetImportedModule(JSTaggedValue referencing);
93 …static int GetExportObjectIndex(EcmaVM *vm, JSHandle<SourceTextModule> ecmaModule, const std::stri…
110 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
117 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
131 uint32_t nextModuleAsyncEvaluatingOrdinal_{SourceTextModule::FIRST_ASYNC_EVALUATING_ORDINAL};
Dmodule_data_extractor.h36 JSHandle<SourceTextModule> &moduleRecord);
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/
Dmodule_data_accessor.h40 JSHandle<SourceTextModule> &moduleRecord);
42 void EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &moduleRecord);
45 JSHandle<SourceTextModule> &moduleRecord);
48 JSHandle<SourceTextModule> &moduleRecord);
Dmodule_data_accessor.cpp42 JSHandle<SourceTextModule> &moduleRecord) in EnumerateImportEntry()
96 void ModuleDataAccessor::EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &mo… in EnumerateLocalExportEntry()
131 JSHandle<SourceTextModule> &moduleRecord) in EnumerateIndirectExportEntry()
167 JSHandle<SourceTextModule> &moduleRecord) in EnumerateStarExportEntry()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp74 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
76 SourceTextModule::AddImportEntry(thread, module, importEntry1, 0, 2); in HWTEST_F_L0()
78 SourceTextModule::AddImportEntry(thread, module, importEntry2, 1, 2); in HWTEST_F_L0()
93 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
95 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry1, 0, 2); in HWTEST_F_L0()
97 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry2, 1, 2); in HWTEST_F_L0()
112 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
114 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry1, 0, 2); in HWTEST_F_L0()
116 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry2, 1, 2); in HWTEST_F_L0()
131 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.cpp100 SourceTextModule::Instantiate(thread, moduleRecord, excuteFromJob); in ExecuteFromAbcFile()
107 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in ExecuteFromAbcFile()
110 SourceTextModule::Evaluate(thread, module, nullptr, 0, excuteFromJob); in ExecuteFromAbcFile()
213 SourceTextModule::Instantiate(thread, moduleRecord); in CommonExecuteBuffer()
219 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in CommonExecuteBuffer()
221 SourceTextModule::Evaluate(thread, module, buffer, size); in CommonExecuteBuffer()
299 SourceTextModule::Instantiate(thread, moduleRecord); in CommonExecuteBuffer()
305 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in CommonExecuteBuffer()
307 SourceTextModule::Evaluate(thread, module, nullptr, 0); in CommonExecuteBuffer()
/arkcompiler/ets_runtime/ecmascript/platform/
Dfile.h34 class SourceTextModule; variable
80 bool TryToRemoveSO(JSThread *thread, JSHandle<SourceTextModule> module);
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp443 …JSTaggedValue importEntries = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetImportE… in GetImportModule()
463 JSTaggedValue moduleEnvironment = SourceTextModule::Cast( in GetImportModule()
482 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in GetModuleVariableIndex()
489 JSTaggedValue localExportEntries = SourceTextModule::Cast( in GetModuleVariableIndex()
518 …JSHandle<SourceTextModule> module(thread, SourceTextModule::Cast(currentModule->GetTaggedObject())… in GetRequestModuleIndex()
544 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in GetExportVariableValue()
570 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in SetExportVariableValue()
630 JSTaggedValue localExportEntries = SourceTextModule::Cast( in InitializeExportVariables()
663 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in GetLocalExportVariables()
673 JSTaggedValue localExportEntries = SourceTextModule::Cast( in GetLocalExportVariables()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp174 auto [isNative, moduleType] = SourceTextModule::CheckNativeModule(requestPath); in DynamicImportJob()
230 JSHandle<SourceTextModule> moduleRecord = in DynamicImportJob()
232 JSHandle<JSTaggedValue> nameSp = SourceTextModule::GetModuleNamespace(thread, moduleRecord); in DynamicImportJob()
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.cpp101 SourceTextModule::Instantiate(thread, moduleRecord, false); in ExecuteFuncOrPatchMain()
102 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in ExecuteFuncOrPatchMain()
103 SourceTextModule::Evaluate(thread, module); in ExecuteFuncOrPatchMain()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp46 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in IsModuleNamespaceObjectFuzztest()
48SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry1, 0, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
50SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry2, 1, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dntype_hcr_lowering.cpp221 …GateRef localExportEntriesOffset = builder_.IntPtr(SourceTextModule::LOCAL_EXPORT_ENTTRIES_OFFSET); in LowerStoreModuleVar()
223 GateRef nameDictionaryOffset = builder_.IntPtr(SourceTextModule::NAME_DICTIONARY_OFFSET); in LowerStoreModuleVar()
249 …builder_.StoreConstOffset(VariableType::JS_ANY(), module, SourceTextModule::NAME_DICTIONARY_OFFSET… in LowerStoreModuleVar()
301 GateRef nameDictionaryOffset = builder_.IntPtr(SourceTextModule::NAME_DICTIONARY_OFFSET); in LowerLdLocalModuleVar()
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp111 …JSTaggedValue recordName = SourceTextModule::Cast(module.GetTaggedObject())->GetEcmaModuleRecordNa… in GetRecordName()
Djs_function.cpp961 ecmascript::SourceTextModule::Instantiate(thread, moduleRecord); in InitializeForConcurrentFunction()
962 …JSHandle<ecmascript::SourceTextModule> module = JSHandle<ecmascript::SourceTextModule>::Cast(modul… in InitializeForConcurrentFunction()
964 ecmascript::SourceTextModule::EvaluateForConcurrent(thread, module, method); in InitializeForConcurrentFunction()
/arkcompiler/ets_runtime/ecmascript/platform/windows/
Dfile.cpp184 bool TryToRemoveSO([[maybe_unused]] JSThread *thread, [[maybe_unused]] JSHandle<SourceTextModule> m… in TryToRemoveSO()
/arkcompiler/ets_runtime/ecmascript/platform/unix/
Dfile.cpp173 bool TryToRemoveSO(JSThread *thread, JSHandle<SourceTextModule> module) in TryToRemoveSO()

12