| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | js_module_manager.cpp | 56 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 …]
|
| D | js_module_manager.h | 33 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> ¤tModule, 116 JSTaggedValue GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule); [all …]
|
| D | js_module_source_text.h | 203 static void InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule, 205 static void InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> ¤tModule, 224 static JSTaggedValue GetModuleName(JSTaggedValue currentModule); 257 …tatic void InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule,
|
| D | js_module_source_text.cpp | 286 …SourceTextModule::InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule, in InstantiateCJS() argument 302 InitializeEnvironment(thread, currentModule, cjsModuleName, cjsExports, isBundle); in InstantiateCJS() 396 …rceTextModule::InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> ¤tModule, in InstantiateNativeModule() argument 410 InitializeEnvironment(thread, currentModule, nativeModuleName, nativeExports, false); in InstantiateNativeModule() 413 …extModule::InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule, 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/ |
| D | debugger_api.h | 86 …<JSTaggedValue> GetImportModule(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 88 … int32_t GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 91 const JSHandle<JSTaggedValue> ¤tModule); 92 …alueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 94 …tic bool SetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 96 …ocal<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 98 static bool SetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 101 const JSHandle<JSTaggedValue> ¤tModule); 103 … const JSHandle<JSTaggedValue> ¤tModule, bool isImportStar); 105 const JSHandle<JSTaggedValue> ¤tModule); [all …]
|
| D | debugger_api.cpp | 435 … const JSHandle<JSTaggedValue> ¤tModule, 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> ¤tModule, 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> ¤tModule) in GetRequestModuleIndex() argument 514 if (!currentModule->IsSourceTextModule()) { in GetRequestModuleIndex() [all …]
|
| /arkcompiler/toolchain/tooling/backend/ |
| D | debugger_executor.cpp | 214 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/ |
| D | bytecode_info_collector.cpp | 644 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/ |
| D | debugger_impl.cpp | 1435 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/ |
| D | method_type_infer.cpp | 1140 … JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName_); in InferLdExternalModuleVar() local 1141 JSTaggedValue moduleEnvironment = currentModule->GetEnvironment(); in InferLdExternalModuleVar()
|