| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | js_module_manager.cpp | 55 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 …]
|
| D | js_module_manager.h | 32 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> ¤tModule, 103 JSTaggedValue GetModuleValueOutterInternal(JSTaggedValue key, JSTaggedValue currentModule); 104 void StoreModuleValueInternal(JSHandle<SourceTextModule> ¤tModule,
|
| D | js_module_source_text.h | 161 static void InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule, 163 static void InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> ¤tModule, 178 static JSTaggedValue GetModuleName(JSTaggedValue currentModule); 203 …tatic void InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule,
|
| D | js_module_source_text.cpp | 265 …SourceTextModule::InstantiateCJS(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule, in InstantiateCJS() argument 281 InitializeEnvironment(thread, currentModule, cjsModuleName, cjsExports, isBundle); in InstantiateCJS() 375 …rceTextModule::InstantiateNativeModule(JSThread *thread, JSHandle<SourceTextModule> ¤tModule, in InstantiateNativeModule() argument 389 InitializeEnvironment(thread, currentModule, nativeModuleName, nativeExports, false); in InstantiateNativeModule() 392 …extModule::InitializeEnvironment(JSThread *thread, const JSHandle<SourceTextModule> ¤tModule, 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/ |
| D | debugger_api.h | 85 …<JSTaggedValue> GetImportModule(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 87 … int32_t GetModuleVariableIndex(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 90 const JSHandle<JSTaggedValue> ¤tModule); 91 …alueRef> GetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 93 …tic bool SetExportVariableValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 95 …ocal<JSValueRef> GetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 97 static bool SetModuleValue(const EcmaVM *ecmaVm, const JSHandle<JSTaggedValue> ¤tModule, 100 const JSHandle<JSTaggedValue> ¤tModule); 102 … const JSHandle<JSTaggedValue> ¤tModule, bool isImportStar); 104 const JSHandle<JSTaggedValue> ¤tModule); [all …]
|
| D | debugger_api.cpp | 378 … const JSHandle<JSTaggedValue> ¤tModule, 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> ¤tModule, 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> ¤tModule) in GetRequestModuleIndex() argument 457 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 | 566 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/ |
| D | debugger_impl.cpp | 1141 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/ |
| D | method_type_infer.cpp | 1084 … JSHandle<SourceTextModule> currentModule = moduleManager->HostGetImportedModule(recordName_); in InferLdExternalModuleVar() local 1085 JSTaggedValue moduleEnvironment = currentModule->GetEnvironment(); in InferLdExternalModuleVar()
|