| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | module_tools.cpp | 54 …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 …]
|
| D | js_module_manager.cpp | 58 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 …]
|
| D | js_module_manager.h | 41 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> ¤tModule, 152 JSTaggedValue GetLazyModuleValueOutterInternal(int32_t index, JSTaggedValue currentModule); 155 JSTaggedValue GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule); 156 void StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule,
|
| D | js_shared_module_manager.cpp | 45 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()
|
| D | module_tools.h | 31 …tic JSTaggedValue ProcessModuleLoadInfo(JSThread *thread, JSHandle<SourceTextModule> currentModule, 35 JSHandle<SourceTextModule> currentModule,
|
| D | module_logger.h | 44 void InsertModuleLoadInfo(JSHandle<SourceTextModule> currentModule, 47 …void InsertParentModule(JSHandle<SourceTextModule> currentModule, JSHandle<SourceTextModule> requi… 48 void InsertEntryPointModule(JSHandle<SourceTextModule> currentModule);
|
| D | module_logger.cpp | 63 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()
|
| D | js_shared_module.cpp | 29 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()
|
| D | js_module_source_text.h | 203 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> ¤tModule,
|
| D | js_shared_module_manager.h | 47 …lue GetSendableModuleValueImpl(JSThread *thread, int32_t index, JSTaggedValue currentModule) const; 51 …GetLazySendableModuleValueImpl(JSThread *thread, int32_t index, JSTaggedValue currentModule) const;
|
| D | js_module_source_text.cpp | 1772 CString SourceTextModule::GetModuleName(JSTaggedValue currentModule) in GetModuleName() argument 1774 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName()
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | debugger_api.h | 110 …<JSTaggedValue> GetImportModule(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 112 … int32_t GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 115 const JSHandle<JSTaggedValue> ¤tModule); 116 …alueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 118 …tic bool SetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 120 …ocal<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 122 static bool SetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 125 const JSHandle<JSTaggedValue> ¤tModule); 127 … const JSHandle<JSTaggedValue> ¤tModule, bool isImportStar); 129 const JSHandle<JSTaggedValue> ¤tModule); [all …]
|
| D | debugger_api.cpp | 450 … const JSHandle<JSTaggedValue> ¤tModule, 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> ¤tModule, 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> ¤tModule) in GetRequestModuleIndex() argument 529 if (!currentModule->IsSourceTextModule()) { in GetRequestModuleIndex() [all …]
|
| /arkcompiler/toolchain/tooling/backend/ |
| D | debugger_executor.cpp | 217 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/ |
| D | debugger_impl.cpp | 1739 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()
|