Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_tools.cpp54 …alue ModuleTools::ProcessModuleLoadInfo(JSThread *thread, JSHandle<SourceTextModule> currentModule, in ProcessModuleLoadInfo() argument
74 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
78 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
86 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
88 thread, currentModule, module, index, binding->GetBindingName()); in ProcessModuleLoadInfo()
91 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
93 thread, currentModule, module, index, binding->GetBindingName()); in ProcessModuleLoadInfo()
97 return GetModuleValueFromIndexBindingForLog(thread, currentModule, resolvedBinding, index); in ProcessModuleLoadInfo()
100 return GetModuleValueFromRecordBindingForLog(thread, currentModule, resolvedBinding, index); in ProcessModuleLoadInfo()
107 …JSThread *thread, JSHandle<SourceTextModule> currentModule, JSHandle<SourceTextModule> requiredMod… in ProcessModuleNameSpaceLoadInfo() argument
[all …]
Djs_module_manager.cpp58 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueInner() local
59 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE in GetModuleValueInner()
62 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
67 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetModuleValueInner() local
68 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE in GetModuleValueInner()
71 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
74 …aggedValue ModuleManager::GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule) in GetModuleValueInner() argument
76 if (currentModule->IsUndefined()) { // LCOV_EXCL_BR_LINE in GetModuleValueInner()
79 …return SourceTextModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread()… in GetModuleValueInner()
84 JSTaggedValue currentModule = GetCurrentModule(); in GetModuleValueOutter() local
[all …]
Djs_module_manager.h41 JSTaggedValue GetModuleValueInner(int32_t index, JSHandle<JSTaggedValue> currentModule);
44 JSTaggedValue GetModuleValueOutter(int32_t index, JSHandle<JSTaggedValue> currentModule);
50 JSTaggedValue GetModuleNamespaceInternal(int32_t index, JSTaggedValue currentModule);
61 JSTaggedValue GetModuleNamespaceInternal(JSTaggedValue localName, JSTaggedValue currentModule);
148 JSTaggedValue GetModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule);
149 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
152 JSTaggedValue GetLazyModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule);
155 JSTaggedValue GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule);
156 void StoreModuleValueInternal(JSHandle<SourceTextModule> &currentModule,
Djs_shared_module_manager.cpp45 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetSendableModuleValue() local
46 return GetSendableModuleValueImpl(thread, index, currentModule); in GetSendableModuleValue()
50 JSThread *thread, int32_t index, JSTaggedValue currentModule) const in GetSendableModuleValueImpl()
52 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE in GetSendableModuleValueImpl()
57 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetSendableModuleValueImpl()
79 JSTaggedValue currentModule = JSFunction::Cast(jsFunc.GetTaggedObject())->GetModule(); in GetLazySendableModuleValue() local
80 return GetLazySendableModuleValueImpl(thread, index, currentModule); in GetLazySendableModuleValue()
84 JSThread *thread, int32_t index, JSTaggedValue currentModule) const in GetLazySendableModuleValueImpl()
86 if (currentModule.IsUndefined()) { // LCOV_EXCL_BR_LINE in GetLazySendableModuleValueImpl()
91 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetLazySendableModuleValueImpl()
Dmodule_tools.h31 …tic JSTaggedValue ProcessModuleLoadInfo(JSThread *thread, JSHandle<SourceTextModule> currentModule,
35 JSHandle<SourceTextModule> currentModule,
Dmodule_logger.h44 void InsertModuleLoadInfo(JSHandle<SourceTextModule> currentModule,
47 …void InsertParentModule(JSHandle<SourceTextModule> currentModule, JSHandle<SourceTextModule> requi…
48 void InsertEntryPointModule(JSHandle<SourceTextModule> currentModule);
Dmodule_logger.cpp63 void ModuleLogger::InsertModuleLoadInfo(JSHandle<SourceTextModule> currentModule, in InsertModuleLoadInfo() argument
68 CString curName = SourceTextModule::GetModuleName(currentModule.GetTaggedValue()); in InsertModuleLoadInfo()
77 JSHandle<TaggedArray> importArray(thread, currentModule->GetImportEntries()); in InsertModuleLoadInfo()
93 void ModuleLogger::InsertParentModule(JSHandle<SourceTextModule> currentModule, in InsertParentModule() argument
97 CString curName = currentModule->GetEcmaModuleRecordNameString(); in InsertParentModule()
103 void ModuleLogger::InsertEntryPointModule(JSHandle<SourceTextModule> currentModule) in InsertEntryPointModule() argument
106 CString curName = currentModule->GetEcmaModuleRecordNameString(); in InsertEntryPointModule()
Djs_shared_module.cpp29 JSHandle<SourceTextModule> currentModule = JSHandle<SourceTextModule>::Cast(module); in GenerateSendableFuncModule() local
31 if (SourceTextModule::IsModuleInSharedHeap(currentModule)) { in GenerateSendableFuncModule()
36 JSHandle<JSTaggedValue> currentEnvironment(thread, currentModule->GetEnvironment()); in GenerateSendableFuncModule()
41 sModule->SetEcmaModuleFilenameString(currentModule->GetEcmaModuleFilenameString()); in GenerateSendableFuncModule()
42 sModule->SetEcmaModuleRecordNameString(currentModule->GetEcmaModuleRecordNameString()); in GenerateSendableFuncModule()
Djs_module_source_text.h203 inline static bool IsModuleInSharedHeap(JSHandle<SourceTextModule> currentModule) in IsModuleInSharedHeap() argument
205 return currentModule->GetSharedType() > SharedTypes::UNSENDABLE_MODULE; in IsModuleInSharedHeap()
208 inline static bool IsSharedModule(JSHandle<SourceTextModule> currentModule) in IsSharedModule() argument
210 return currentModule->GetSharedType() == SharedTypes::SHARED_MODULE; in IsSharedModule()
219 inline static bool IsSendableFunctionModule(JSTaggedValue currentModule) in IsSendableFunctionModule() argument
221 return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetSharedType() == in IsSendableFunctionModule()
373 static CString GetModuleName(JSTaggedValue currentModule);
413 …tatic void InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> &currentModule,
Djs_shared_module_manager.h47 …lue GetSendableModuleValueImpl(JSThread *thread, int32_t index, JSTaggedValue currentModule) const;
51 …GetLazySendableModuleValueImpl(JSThread *thread, int32_t index, JSTaggedValue currentModule) const;
Djs_module_source_text.cpp1772 CString SourceTextModule::GetModuleName(JSTaggedValue currentModule) in GetModuleName() argument
1774 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.h110 …<JSTaggedValue> GetImportModule(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
112 … int32_t GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
115 const JSHandle<JSTaggedValue> &currentModule);
116 …alueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
118 …tic bool SetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
120 …ocal<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
122 static bool SetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule,
125 const JSHandle<JSTaggedValue> &currentModule);
127 … const JSHandle<JSTaggedValue> &currentModule, bool isImportStar);
129 const JSHandle<JSTaggedValue> &currentModule);
[all …]
Ddebugger_api.cpp450 … const JSHandle<JSTaggedValue> &currentModule, std::string &name) in GetImportModule() argument
454 if (!currentModule->IsSourceTextModule()) { in GetImportModule()
458 …JSTaggedValue importEntries = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetImportE… in GetImportModule()
479 currentModule->GetTaggedObject())->GetEnvironment(); in GetImportModule()
491 …ggerApi::GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> &currentModule, in GetModuleVariableIndex() argument
494 if (!currentModule->IsSourceTextModule()) { in GetModuleVariableIndex()
497 …JSTaggedValue dictionary = SourceTextModule::Cast(currentModule->GetTaggedObject())->GetNameDictio… in GetModuleVariableIndex()
505 currentModule->GetTaggedObject())->GetLocalExportEntries(); in GetModuleVariableIndex()
527 const JSHandle<JSTaggedValue> &currentModule) in GetRequestModuleIndex() argument
529 if (!currentModule->IsSourceTextModule()) { in GetRequestModuleIndex()
[all …]
/arkcompiler/toolchain/tooling/backend/
Ddebugger_executor.cpp217 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm)); in GetModuleValue() local
218 if (currentModule->IsSourceTextModule()) { in GetModuleValue()
219 result = DebuggerApi::GetModuleValue(vm, currentModule, varName); in GetModuleValue()
234 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm)); in SetModuleValue() local
235 if (currentModule->IsSourceTextModule()) { in SetModuleValue()
236 DebuggerApi::SetModuleValue(vm, currentModule, varName, value); in SetModuleValue()
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.cpp1739 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm_)); in GenerateScopeChains() local
1740 if (currentModule->IsSourceTextModule()) { // CJS module is string in GenerateScopeChains()
1911 JSHandle<JSTaggedValue> currentModule(thread, DebuggerApi::GetCurrentModule(vm_)); in GetModuleScopeChain() local
1912 DebuggerApi::GetLocalExportVariables(vm_, moduleObj, currentModule, false); in GetModuleScopeChain()
1913 DebuggerApi::GetIndirectExportVariables(vm_, moduleObj, currentModule); in GetModuleScopeChain()
1914 DebuggerApi::GetImportVariables(vm_, moduleObj, currentModule); in GetModuleScopeChain()