/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.h | 52 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 …]
|
D | js_module_source_text.cpp | 40 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 …]
|
D | js_module_record.cpp | 23 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()
|
D | js_module_deregister.cpp | 47 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 …]
|
D | js_module_deregister.h | 33 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,
|
D | js_module_manager.cpp | 60 …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 …]
|
D | js_dynamic_import.cpp | 38 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()
|
D | js_module_namespace.cpp | 88 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 …]
|
D | module_data_extractor.cpp | 48 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseModule() 66 JSHandle<SourceTextModule> &moduleRecord) in ExtractModuleDatas() 94 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseCjsModule() 102 …SourceTextModule::AddLocalExportEntry(thread, moduleRecord, localExportEntry, 0, 1); // 1 means len in ParseCjsModule() 114 JSHandle<SourceTextModule> moduleRecord = factory->NewSourceTextModule(); in ParseJsonModule() 119 …SourceTextModule::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()
|
D | js_module_manager.h | 55 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> ¤tModule, 117 void StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule, 131 uint32_t nextModuleAsyncEvaluatingOrdinal_{SourceTextModule::FIRST_ASYNC_EVALUATING_ORDINAL};
|
D | module_data_extractor.h | 36 JSHandle<SourceTextModule> &moduleRecord);
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/accessor/ |
D | module_data_accessor.h | 40 JSHandle<SourceTextModule> &moduleRecord); 42 void EnumerateLocalExportEntry(JSThread *thread, JSHandle<SourceTextModule> &moduleRecord); 45 JSHandle<SourceTextModule> &moduleRecord); 48 JSHandle<SourceTextModule> &moduleRecord);
|
D | module_data_accessor.cpp | 42 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/ |
D | ecma_module_test.cpp | 74 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/ |
D | js_pandafile_executor.cpp | 100 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/ |
D | file.h | 34 class SourceTextModule; variable 80 bool TryToRemoveSO(JSThread *thread, JSHandle<SourceTextModule> module);
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 443 …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/ |
D | builtins_promise_job.cpp | 174 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/ |
D | patch_loader.cpp | 101 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/ |
D | jsvaluerefismodulenamespace_fuzzer.cpp | 46 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in IsModuleNamespaceObjectFuzztest() 48 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry1, 0, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest() 50 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry2, 1, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ntype_hcr_lowering.cpp | 221 …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/ |
D | method.cpp | 111 …JSTaggedValue recordName = SourceTextModule::Cast(module.GetTaggedObject())->GetEcmaModuleRecordNa… in GetRecordName()
|
D | js_function.cpp | 961 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/ |
D | file.cpp | 184 bool TryToRemoveSO([[maybe_unused]] JSThread *thread, [[maybe_unused]] JSHandle<SourceTextModule> m… in TryToRemoveSO()
|
/arkcompiler/ets_runtime/ecmascript/platform/unix/ |
D | file.cpp | 173 bool TryToRemoveSO(JSThread *thread, JSHandle<SourceTextModule> module) in TryToRemoveSO()
|