Lines Matching defs:currentModule

58     JSTaggedValue currentModule = GetCurrentModule();
59 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
60 LOG_FULL(FATAL) << "GetModuleValueInner currentModule failed";
62 return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), index, false);
67 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule();
68 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
69 LOG_FULL(FATAL) << "GetModuleValueInner currentModule failed";
71 return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), index, false);
74 JSTaggedValue ModuleManager::GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule)
76 if (currentModule->IsUndefined()) { // LCOV_EXCL_BR_LINE
77 LOG_FULL(FATAL) << "GetModuleValueInner currentModule failed";
79 return SourceTextModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), index, false);
84 JSTaggedValue currentModule = GetCurrentModule();
85 return GetModuleValueOutterInternal(index, currentModule);
90 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule();
91 return GetModuleValueOutterInternal(index, currentModule);
94 JSTaggedValue ModuleManager::GetModuleValueOutter(int32_t index, JSHandle<JSTaggedValue> currentModule)
96 return GetModuleValueOutterInternal(index, currentModule.GetTaggedValue());
99 JSTaggedValue ModuleManager::GetModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule)
102 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
103 LOG_FULL(FATAL) << "GetModuleValueOutter currentModule failed";
106 JSHandle<SourceTextModule> currentModuleHdl(thread, currentModule);
158 currentModule.Dump(oss);
160 << ", index: " << index << ", currentModule: " << oss.str();
166 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule();
167 return GetLazyModuleValueOutterInternal(index, currentModule);
170 JSTaggedValue ModuleManager::GetLazyModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule)
173 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
174 LOG_FULL(FATAL) << "GetLazyModuleValueOutter currentModule failed";
177 JSHandle<SourceTextModule> currentModuleHdl(thread, currentModule);
240 JSHandle<SourceTextModule> currentModule(thread, GetCurrentModule());
241 StoreModuleValueInternal(currentModule, index, value);
247 JSHandle<SourceTextModule> currentModule(thread, JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule());
248 StoreModuleValueInternal(currentModule, index, value);
251 void ModuleManager::StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
254 if (currentModule.GetTaggedValue().IsUndefined()) { // LCOV_EXCL_BR_LINE
255 LOG_FULL(FATAL) << "StoreModuleValue currentModule failed";
260 currentModule->StoreModuleValue(thread, index, valueHandle);
265 JSTaggedValue currentModule = GetCurrentModule();
266 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
267 LOG_FULL(FATAL) << "GetModuleValueInner currentModule failed";
270 return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), key, false);
275 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule();
276 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
277 LOG_FULL(FATAL) << "GetModuleValueInner currentModule failed";
280 return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), key, false);
285 JSTaggedValue currentModule = GetCurrentModule();
286 return GetModuleValueOutterInternal(key, currentModule);
291 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule();
292 return GetModuleValueOutterInternal(key, currentModule);
295 JSTaggedValue ModuleManager::GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule)
298 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
299 LOG_FULL(FATAL) << "GetModuleValueOutter currentModule failed";
302 JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvironment();
327 JSHandle<SourceTextModule> currentModule(thread, GetCurrentModule());
328 StoreModuleValueInternal(currentModule, key, value);
334 JSHandle<SourceTextModule> currentModule(thread, JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule());
335 StoreModuleValueInternal(currentModule, key, value);
338 void ModuleManager::StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
341 if (currentModule.GetTaggedValue().IsUndefined()) { // LCOV_EXCL_BR_LINE
342 LOG_FULL(FATAL) << "StoreModuleValue currentModule failed";
348 currentModule->StoreModuleValue(thread, keyHandle, valueHandle);
597 JSTaggedValue currentModule = GetCurrentModule();
598 return GetModuleNamespaceInternal(index, currentModule);
603 JSTaggedValue currentModule = JSFunction::Cast(currentFunc.GetTaggedObject())->GetModule();
604 return GetModuleNamespaceInternal(index, currentModule);
607 JSTaggedValue ModuleManager::GetModuleNamespaceInternal(int32_t index, JSTaggedValue currentModule)
609 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
610 LOG_FULL(FATAL) << "GetModuleNamespace currentModule failed";
614 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject());
652 JSTaggedValue currentModule = GetCurrentModule();
653 return GetModuleNamespaceInternal(localName, currentModule);
658 JSTaggedValue currentModule = JSFunction::Cast(currentFunc.GetTaggedObject())->GetModule();
659 return GetModuleNamespaceInternal(localName, currentModule);
662 JSTaggedValue ModuleManager::GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule)
664 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE
665 LOG_FULL(FATAL) << "GetModuleNamespace currentModule failed";
668 JSTaggedValue moduleEnvironment = SourceTextModule::Cast(currentModule.GetTaggedObject())->GetEnvironment();