Lines Matching refs:currentModule
55 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueInner() local
56 if (currentModule.IsUndefined()) { in GetModuleValueInner()
59 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
64 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueInner() local
65 if (currentModule.IsUndefined()) { in GetModuleValueInner()
68 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
71 …aggedValue ModuleManager::GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule) in GetModuleValueInner() argument
73 if (currentModule->IsUndefined()) { in GetModuleValueInner()
76 …return SourceTextModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread()… in GetModuleValueInner()
81 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueOutter() local
82 return GetModuleValueOutterInternal(index, currentModule); in GetModuleValueOutter()
87 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueOutter() local
88 return GetModuleValueOutterInternal(index, currentModule); in GetModuleValueOutter()
91 …ggedValue ModuleManager::GetModuleValueOutter(int32_t index, JSHandle<JSTaggedValue> currentModule) in GetModuleValueOutter() argument
93 return GetModuleValueOutterInternal(index, currentModule.GetTaggedValue()); in GetModuleValueOutter()
96 …TaggedValue ModuleManager::GetModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule) in GetModuleValueOutterInternal() argument
99 if (currentModule.IsUndefined()) { in GetModuleValueOutterInternal()
103 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal()
117 return GetNativeModuleValue(thread, currentModule, resolvedModule, binding); in GetModuleValueOutterInternal()
120 return GetCJSModuleValue(thread, currentModule, resolvedModule, binding); in GetModuleValueOutterInternal()
136 JSTaggedValue ModuleManager::GetNativeModuleValue(JSThread *thread, JSTaggedValue currentModule, in GetNativeModuleValue() argument
144 currentModule.GetTaggedObject())->GetEcmaModuleFilename()); in GetNativeModuleValue()
152 JSTaggedValue ModuleManager::GetCJSModuleValue(JSThread *thread, JSTaggedValue currentModule, in GetCJSModuleValue() argument
162 currentModule.GetTaggedObject())->GetEcmaModuleFilename()); in GetCJSModuleValue()
201 JSHandle<SourceTextModule> currentModule(thread, GetCurrentModule()); in StoreModuleValue() local
202 StoreModuleValueInternal(currentModule, index, value); in StoreModuleValue()
208 …JSHandle<SourceTextModule> currentModule(thread, JSFunction::Cast(jsFunc.GetTaggedObject())->GetMo… in StoreModuleValue() local
209 StoreModuleValueInternal(currentModule, index, value); in StoreModuleValue()
212 void ModuleManager::StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule, in StoreModuleValueInternal() argument
215 if (currentModule.GetTaggedValue().IsUndefined()) { in StoreModuleValueInternal()
221 currentModule->StoreModuleValue(thread, index, valueHandle); in StoreModuleValueInternal()
226 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueInner() local
227 if (currentModule.IsUndefined()) { in GetModuleValueInner()
231 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
236 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueInner() local
237 if (currentModule.IsUndefined()) { in GetModuleValueInner()
241 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
246 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueOutter() local
247 return GetModuleValueOutterInternal(key, currentModule); in GetModuleValueOutter()
252 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueOutter() local
253 return GetModuleValueOutterInternal(key, currentModule); in GetModuleValueOutter()
256 …edValue ModuleManager::GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule) in GetModuleValueOutterInternal() argument
259 if (currentModule.IsUndefined()) { in GetModuleValueOutterInternal()
263 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleValueOutterInternal()
287 JSHandle<SourceTextModule> currentModule(thread, GetCurrentModule()); in StoreModuleValue() local
288 StoreModuleValueInternal(currentModule, key, value); in StoreModuleValue()
294 …JSHandle<SourceTextModule> currentModule(thread, JSFunction::Cast(jsFunc.GetTaggedObject())->GetMo… in StoreModuleValue() local
295 StoreModuleValueInternal(currentModule, key, value); in StoreModuleValue()
298 void ModuleManager::StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule, in StoreModuleValueInternal() argument
301 if (currentModule.GetTaggedValue().IsUndefined()) { in StoreModuleValueInternal()
308 currentModule->StoreModuleValue(thread, keyHandle, valueHandle); in StoreModuleValueInternal()
564 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleNamespace() local
565 return GetModuleNamespaceInternal(index, currentModule); in GetModuleNamespace()
570 JSTaggedValue currentModule = JSFunction::Cast(currentFunc.GetTaggedObject())->GetModule(); in GetModuleNamespace() local
571 return GetModuleNamespaceInternal(index, currentModule); in GetModuleNamespace()
574 JSTaggedValue ModuleManager::GetModuleNamespaceInternal(int32_t index, JSTaggedValue currentModule) in GetModuleNamespaceInternal() argument
576 if (currentModule.IsUndefined()) { in GetModuleNamespaceInternal()
581 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleNamespaceInternal()
615 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleNamespace() local
616 return GetModuleNamespaceInternal(localName, currentModule); in GetModuleNamespace()
621 JSTaggedValue currentModule = JSFunction::Cast(currentFunc.GetTaggedObject())->GetModule(); in GetModuleNamespace() local
622 return GetModuleNamespaceInternal(localName, currentModule); in GetModuleNamespace()
625 …lue ModuleManager::GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule) in GetModuleNamespaceInternal() argument
627 if (currentModule.IsUndefined()) { in GetModuleNamespaceInternal()
631 …JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvi… in GetModuleNamespaceInternal()