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.cpp55 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
[all …]
Djs_module_manager.h32 JSTaggedValue GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule);
35 JSTaggedValue GetModuleValueOutter(int32_t index, JSHandle<JSTaggedValue> currentModule);
40 JSTaggedValue GetModuleNamespaceInternal(int32_t index, JSTaggedValue currentModule);
51 JSTaggedValue GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule);
68 JSTaggedValue GetNativeModuleValue(JSThread *thread, JSTaggedValue currentModule,
70 JSTaggedValue GetCJSModuleValue(JSThread *thread, JSTaggedValue currentModule,
96 JSTaggedValue GetModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule);
97 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
103 JSTaggedValue GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule);
104 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
Djs_module_source_text.h161 static void InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> &currentModule,
163 static void InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> &currentModule,
178 static JSTaggedValue GetModuleName(JSTaggedValue currentModule);
203 …tatic void InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> &currentModule,
Djs_module_source_text.cpp265 …SourceTextModule::InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> &currentModule, in InstantiateCJS() argument
281 InitializeEnvironment(thread, currentModule, cjsModuleName, cjsExports, isBundle); in InstantiateCJS()
375 …rceTextModule::InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> &currentModule, in InstantiateNativeModule() argument
389 InitializeEnvironment(thread, currentModule, nativeModuleName, nativeExports, false); in InstantiateNativeModule()
392 …extModule::InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> &currentModule, in InitializeEnvironment() argument
396 JSHandle<JSTaggedValue> moduleEnvironment(thread, currentModule->GetEnvironment()); in InitializeEnvironment()
403 JSHandle<TaggedArray> importEntries(thread, currentModule->GetImportEntries()); in InitializeEnvironment()
436 ConvertToString(currentModule->GetEcmaModuleRecordName()) + "'"; in InitializeEnvironment()
1548 JSTaggedValue SourceTextModule::GetModuleName(JSTaggedValue currentModule) in GetModuleName() argument
1550 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.h85 …<JSTaggedValue> GetImportModule(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
87 … int32_t GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
90 const JSHandle<JSTaggedValue> &currentModule);
91 …alueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
93 …tic bool SetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
95 …ocal<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
97 static bool SetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
100 const JSHandle<JSTaggedValue> &currentModule);
102 … const JSHandle<JSTaggedValue> &currentModule, bool isImportStar);
104 const JSHandle<JSTaggedValue> &currentModule);
[all …]
Ddebugger_api.cpp378 … const JSHandle<JSTaggedValue> &currentModule, std::string &name) in GetImportModule() argument
382 if (!currentModule->IsSourceTextModule()) { in GetImportModule()
386 …JSTaggedValue importEntries = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetImportE… in GetImportModule()
407 currentModule->GetTaggedObject())->GetEnvironment(); in GetImportModule()
419 …ggerApi::GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule, in GetModuleVariableIndex() argument
422 if (!currentModule->IsSourceTextModule()) { in GetModuleVariableIndex()
425 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in GetModuleVariableIndex()
433 currentModule->GetTaggedObject())->GetLocalExportEntries(); in GetModuleVariableIndex()
455 const JSHandle<JSTaggedValue> &currentModule) in GetRequestModuleIndex() argument
457 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.cpp566 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectExportIndexs() local
567 if (currentModule->GetLocalExportEntries().IsUndefined()) { in CollectExportIndexs()
571 JSHandle<TaggedArray> localExportArray(thread, currentModule->GetLocalExportEntries()); in CollectExportIndexs()
648 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectRecordImportInfo() local
650 JSTaggedValue moduleEnvironment = currentModule->GetEnvironment(); in CollectRecordImportInfo()
678 JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName); in CollectRecordExportInfo() local
680 JSTaggedValue starEntries = currentModule->GetStarExportEntries(); in CollectRecordExportInfo()
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.cpp1141 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm_)); in GenerateCallFrame() local
1142 if (currentModule->IsSourceTextModule()) { // CJS module is string in GenerateCallFrame()
1225 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm_)); in GetModuleScopeChain() local
1226 DebuggerApi::GetLocalExportVariables(vm_, moduleObj, currentModule, false); in GetModuleScopeChain()
1227 DebuggerApi::GetIndirectExportVariables(vm_, moduleObj, currentModule); in GetModuleScopeChain()
1228 DebuggerApi::GetImportVariables(vm_, moduleObj, currentModule); in GetModuleScopeChain()
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dmethod_type_infer.cpp1084 … JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName_); in InferLdExternalModuleVar() local
1085 JSTaggedValue moduleEnvironment = currentModule->GetEnvironment(); in InferLdExternalModuleVar()