Lines Matching full:module
15 #include "ecmascript/module/js_shared_module_manager.h"
19 #include "ecmascript/module/module_manager_helper.h"
20 #include "ecmascript/module/module_path_helper.h"
57 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetSendableModuleValueImpl() local
58 JSTaggedValue moduleEnvironment = module->GetEnvironment(); in GetSendableModuleValueImpl()
65 return ModuleManagerHelper::GetModuleValueFromIndexBinding(thread, module, resolvedBinding); in GetSendableModuleValueImpl()
71 … return ModuleManagerHelper::GetModuleValueFromRecordBinding(thread, module, resolvedBinding); in GetSendableModuleValueImpl()
91 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetLazySendableModuleValueImpl() local
92 JSTaggedValue moduleEnvironment = module->GetEnvironment(); in GetLazySendableModuleValueImpl()
99 … return ModuleManagerHelper::GetLazyModuleValueFromIndexBinding(thread, module, resolvedBinding); in GetLazySendableModuleValueImpl()
107 … return ModuleManagerHelper::GetLazyModuleValueFromRecordBinding(thread, module, resolvedBinding); in GetLazySendableModuleValueImpl()
124 // loading unshared module though current context's module manager in ResolveImportedModule()
151 // loading unshared module though current context's module manager in ResolveImportedModuleWithMerge()
163 …// before resolving module completely, shared-module put into isolate -thread resolvedModules_ tem… in ResolveSharedImportedModuleWithMerge()
165 JSHandle<JSTaggedValue> module = moduleManager->TryGetImportedModule(recordName); in ResolveSharedImportedModuleWithMerge() local
166 if (!module->IsUndefined()) { in ResolveSharedImportedModuleWithMerge()
167 return module; in ResolveSharedImportedModuleWithMerge()
194 JSHandle<JSTaggedValue> module(thread, entry->second); in GetSModuleUnsafe() local
195 return JSHandle<SourceTextModule>::Cast(module); in GetSModuleUnsafe()
213 JSHandle<JSTaggedValue> module = JSHandle<JSTaggedValue>::Cast(moduleRecord); in InsertInSModuleManager() local
215 AddResolveImportedSModule(recordName, module.GetTaggedValue()); in InsertInSModuleManager()
226 JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule(s); in TransferSModule() local
227 ASSERT(module->GetSharedType() == SharedTypes::SHARED_MODULE); in TransferSModule()
228 InsertInSModuleManager(thread, s, module); in TransferSModule()
234 …dModuleManager::findModuleMutexWithLock(JSThread *thread, const JSHandle<SourceTextModule> &module) in findModuleMutexWithLock() argument
237 CString moduleName = SourceTextModule::GetModuleName(module.GetTaggedValue()); in findModuleMutexWithLock()
240 LOG_ECMA(FATAL) << " Get shared module mutex failed"; in findModuleMutexWithLock()
245 …aredModuleManager::IsInstaniatedSModule(JSThread *thread, const JSHandle<SourceTextModule> &module) in IsInstaniatedSModule() argument
248 return (module->GetStatus() >= ModuleStatus::INSTANTIATED); in IsInstaniatedSModule()
260 JSHandle<SourceTextModule> module; in GenerateFuncModule() local
265 module = moduleManager->HostGetImportedModule(recordName); in GenerateFuncModule()
269 return JSHandle<JSTaggedValue>(module); in GenerateFuncModule()
271 // Clone isolate module at shared-heap to mark sendable class. in GenerateFuncModule()
272 … return SendableClassModule::GenerateSendableFuncModule(thread, JSHandle<JSTaggedValue>(module)); in GenerateFuncModule()
279 const JSHandle<JSTaggedValue> &module, const JSHandle<TaggedArray> &exports) in SModuleNamespaceCreate() argument
282 return JSSharedModule::SModuleNamespaceCreate(thread, module, exports); in SModuleNamespaceCreate()
290 JSTaggedValue module = it->second; in SharedNativeObjDestory() local
291 SourceTextModule::Cast(module)->DestoryLazyImportArray(); in SharedNativeObjDestory()
292 SourceTextModule::Cast(module)->DestoryEcmaModuleFilenameString(); in SharedNativeObjDestory()
293 SourceTextModule::Cast(module)->DestoryEcmaModuleRecordNameString(); in SharedNativeObjDestory()