Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp56 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueInner() local
57 if (currentModule.IsUndefined()) { in GetModuleValueInner()
60 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
65 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueInner() local
66 if (currentModule.IsUndefined()) { in GetModuleValueInner()
69 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
72 …aggedValue ModuleManager::GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule) in GetModuleValueInner() argument
74 if (currentModule->IsUndefined()) { in GetModuleValueInner()
77 …return SourceTextModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread()… in GetModuleValueInner()
82 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueOutter() local
[all …]
Djs_module_manager.h33 JSTaggedValue GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule);
36 JSTaggedValue GetModuleValueOutter(int32_t index, JSHandle<JSTaggedValue> currentModule);
41 JSTaggedValue GetModuleNamespaceInternal(int32_t index, JSTaggedValue currentModule);
52 JSTaggedValue GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule);
73 JSTaggedValue GetNativeModuleValue(JSThread *thread, JSTaggedValue currentModule,
75 JSTaggedValue GetNativeModuleValue(JSThread *thread, JSTaggedValue currentModule,
77 JSTaggedValue GetCJSModuleValue(JSThread *thread, JSTaggedValue currentModule,
109 JSTaggedValue GetModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule);
110 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
116 JSTaggedValue GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule);
[all …]
Djs_module_source_text.h203 static void InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> &currentModule,
205 static void InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> &currentModule,
224 static JSTaggedValue GetModuleName(JSTaggedValue currentModule);
257 …tatic void InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> &currentModule,
Djs_module_source_text.cpp286 …SourceTextModule::InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> &currentModule, in InstantiateCJS() argument
302 InitializeEnvironment(thread, currentModule, cjsModuleName, cjsExports, isBundle); in InstantiateCJS()
396 …rceTextModule::InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> &currentModule, in InstantiateNativeModule() argument
410 InitializeEnvironment(thread, currentModule, nativeModuleName, nativeExports, false); in InstantiateNativeModule()
413 …extModule::InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> &currentModule, in InitializeEnvironment() argument
417 JSHandle<JSTaggedValue> moduleEnvironment(thread, currentModule->GetEnvironment()); in InitializeEnvironment()
424 JSHandle<TaggedArray> importEntries(thread, currentModule->GetImportEntries()); in InitializeEnvironment()
457 ConvertToString(currentModule->GetEcmaModuleRecordName()) + "'"; in InitializeEnvironment()
1756 JSTaggedValue SourceTextModule::GetModuleName(JSTaggedValue currentModule) in GetModuleName() argument
1758 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.h86 …<JSTaggedValue> GetImportModule(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
88 … int32_t GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
91 const JSHandle<JSTaggedValue> &currentModule);
92 …alueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
94 …tic bool SetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
96 …ocal<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
98 static bool SetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
101 const JSHandle<JSTaggedValue> &currentModule);
103 … const JSHandle<JSTaggedValue> &currentModule, bool isImportStar);
105 const JSHandle<JSTaggedValue> &currentModule);
[all …]
Ddebugger_api.cpp435 … const JSHandle<JSTaggedValue> &currentModule, std::string &name) in GetImportModule() argument
439 if (!currentModule->IsSourceTextModule()) { in GetImportModule()
443 …JSTaggedValue importEntries = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetImportE… in GetImportModule()
464 currentModule->GetTaggedObject())->GetEnvironment(); in GetImportModule()
476 …ggerApi::GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule, in GetModuleVariableIndex() argument
479 if (!currentModule->IsSourceTextModule()) { in GetModuleVariableIndex()
482 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in GetModuleVariableIndex()
490 currentModule->GetTaggedObject())->GetLocalExportEntries(); in GetModuleVariableIndex()
512 const JSHandle<JSTaggedValue> &currentModule) in GetRequestModuleIndex() argument
514 if (!currentModule->IsSourceTextModule()) { in GetRequestModuleIndex()
[all …]
/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.cpp214 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm)); in GetModuleValue() local
215 if (currentModule->IsSourceTextModule()) { in GetModuleValue()
216 result = DebuggerApi::GetModuleValue(vm, currentModule, varName); in GetModuleValue()
231 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm)); in SetModuleValue() local
232 if (currentModule->IsSourceTextModule()) { in SetModuleValue()
233 DebuggerApi::SetModuleValue(vm, currentModule, varName, value); in SetModuleValue()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp644 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectExportIndexs() local
645 if (currentModule->GetLocalExportEntries().IsUndefined()) { in CollectExportIndexs()
649 JSHandle<TaggedArray> localExportArray(thread, currentModule->GetLocalExportEntries()); in CollectExportIndexs()
726 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectRecordImportInfo() local
728 JSTaggedValue moduleEnvironment = currentModule->GetEnvironment(); in CollectRecordImportInfo()
756 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectRecordExportInfo() local
758 JSTaggedValue starEntries = currentModule->GetStarExportEntries(); in CollectRecordExportInfo()
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.cpp1435 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm_)); in GenerateCallFrame() local
1436 if (currentModule->IsSourceTextModule()) { // CJS module is string in GenerateCallFrame()
1611 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm_)); in GetModuleScopeChain() local
1612 DebuggerApi::GetLocalExportVariables(vm_, moduleObj, currentModule, false); in GetModuleScopeChain()
1613 DebuggerApi::GetIndirectExportVariables(vm_, moduleObj, currentModule); in GetModuleScopeChain()
1614 DebuggerApi::GetImportVariables(vm_, moduleObj, currentModule); in GetModuleScopeChain()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dmethod_type_infer.cpp1140 … JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName_); in InferLdExternalModuleVar() local
1141 JSTaggedValue moduleEnvironment = currentModule->GetEnvironment(); in InferLdExternalModuleVar()