Home
last modified time | relevance | path

Searched refs:moduleManager (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/module/
Djs_dynamic_import.cpp30 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in ExecuteNativeModule() local
32 if (moduleManager->IsImportedModuleLoaded(specifierString.GetTaggedValue())) { in ExecuteNativeModule()
35 moduleManager->HostGetImportedModule(specifierString.GetTaggedValue()); in ExecuteNativeModule()
40 …JSHandle<JSTaggedValue> nativeModuleHld = moduleManager->ResolveNativeModule(requestPath, moduleTy… in ExecuteNativeModule()
Djs_module_deregister.cpp67 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in ReviseLoadedModuleCount() local
68 JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule(moduleName); in ReviseLoadedModuleCount()
85 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in RemoveModule() local
93 JSHandle<NameDictionary> dict(thread, moduleManager->resolvedModules_.GetTaggedObject()); in RemoveModule()
98 moduleManager->resolvedModules_ = NameDictionary::Remove(thread, dict, entry).GetTaggedValue(); in RemoveModule()
Djs_module_source_text.cpp85 auto moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in HostResolveImportedModuleWithMerge() local
86 if (moduleManager->IsImportedModuleLoaded(moduleRequest.GetTaggedValue())) { in HostResolveImportedModuleWithMerge()
87 …return JSHandle<JSTaggedValue>(moduleManager->HostGetImportedModule(moduleRequest.GetTaggedValue()… in HostResolveImportedModuleWithMerge()
93 return moduleManager->ResolveNativeModule(moduleRequestName, moduleType); in HostResolveImportedModuleWithMerge()
118 return moduleManager->HostResolveImportedModuleWithMerge(outFileName, entryPoint); in HostResolveImportedModuleWithMerge()
126 auto moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in HostResolveImportedModule() local
127 if (moduleManager->IsImportedModuleLoaded(moduleRequest.GetTaggedValue())) { in HostResolveImportedModule()
128 …return JSHandle<JSTaggedValue>(moduleManager->HostGetImportedModule(moduleRequest.GetTaggedValue()… in HostResolveImportedModule()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile_executor.cpp90 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in ExecuteFromFile() local
93 moduleRecord = moduleManager->HostResolveImportedModule(name, excuteFromJob); in ExecuteFromFile()
95 … moduleRecord = moduleManager->HostResolveImportedModuleWithMerge(name, entry, excuteFromJob); in ExecuteFromFile()
197 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in CommonExecuteBuffer() local
198 moduleManager->SetExecuteMode(true); in CommonExecuteBuffer()
201 moduleRecord.Update(moduleManager->HostResolveImportedModule(buffer, size, filename)); in CommonExecuteBuffer()
203 moduleRecord.Update(moduleManager->HostResolveImportedModuleWithMerge(filename, entry)); in CommonExecuteBuffer()
279 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in CommonExecuteBuffer() local
280 moduleManager->SetExecuteMode(true); in CommonExecuteBuffer()
283 moduleRecord.Update(moduleManager->HostResolveImportedModule(jsPandaFile, filename)); in CommonExecuteBuffer()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp240 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in HWTEST_F_L0() local
244 moduleManager->AddResolveImportedModule(baseFileName.c_str(), moduleRecord); in HWTEST_F_L0()
245 JSHandle<JSTaggedValue> res = moduleManager->HostResolveImportedModule(baseFileName.c_str()); in HWTEST_F_L0()
262 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in HWTEST_F_L0() local
263 moduleManager->AddResolveImportedModule(baseFileName, JSHandle<JSTaggedValue>::Cast(module)); in HWTEST_F_L0()
278 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in HWTEST_F_L0() local
279 …JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule("module_test_module_test_… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp160 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in DynamicImportJob() local
192 if (!moduleManager->IsImportedModuleLoaded(moduleName.GetTaggedValue())) { in DynamicImportJob()
218 moduleManager->HostGetImportedModule(moduleName.GetTaggedValue()); in DynamicImportJob()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dpass_manager.cpp181 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in ResolveModule() local
186 …JSHandle<JSTaggedValue> moduleRecord = moduleManager->HostResolveImportedModuleWithMerge(fileName.… in ResolveModule()
Dbytecode_info_collector.cpp562 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in CollectExportIndexs() local
566 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectExportIndexs()
646 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in CollectRecordImportInfo() local
648 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectRecordImportInfo()
676 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in CollectRecordExportInfo() local
678 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectRecordExportInfo()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp918 ecmascript::ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in GetExportObject() local
919 JSHandle<ecmascript::SourceTextModule> ecmaModule = moduleManager->HostGetImportedModule(entry); in GetExportObject()
939 ecmascript::ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in GetExportObjectFromBuffer() local
940 …JSHandle<ecmascript::SourceTextModule> ecmaModule = moduleManager->HostGetImportedModule(file.c_st… in GetExportObjectFromBuffer()
3617 ecmascript::ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in InitForConcurrentFunction() local
3622 moduleRecord = moduleManager->HostResolveImportedModule(moduleName); in InitForConcurrentFunction()
3625 moduleRecord = moduleManager->HostResolveImportedModuleWithMerge(moduleName, recordName); in InitForConcurrentFunction()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dmethod_type_infer.cpp1082 ModuleManager *moduleManager = thread->GetCurrentEcmaContext()->GetModuleManager(); in InferLdExternalModuleVar() local
1084 … JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName_); in InferLdExternalModuleVar()