Lines Matching full:module
16 #include "ecmascript/module/module_tools.h"
21 #include "ecmascript/module/js_module_manager.h"
22 #include "ecmascript/module/js_shared_module.h"
23 #include "ecmascript/module/module_logger.h"
24 #include "ecmascript/module/module_manager_helper.h"
25 #include "ecmascript/module/module_path_helper.h"
32 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetModuleValueFromIndexBindingForLog() argument
36 ModuleManagerHelper::GetResolvedRecordIndexBindingModule(thread, module, binding); in GetModuleValueFromIndexBindingForLog()
39 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetModuleValueFromIndexBindingForLog()
45 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetModuleValueFromRecordBindingForLog() argument
49 ModuleManagerHelper::GetResolvedRecordBindingModule(thread, module, binding); in GetModuleValueFromRecordBindingForLog()
52 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetModuleValueFromRecordBindingForLog()
65 JSHandle<SourceTextModule> module(thread, resolvedModule); in ProcessModuleLoadInfo() local
73 context->FindPatchModule(module->GetEcmaModuleRecordNameString()); in ProcessModuleLoadInfo()
77 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
81 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
82 return ModuleManagerHelper::GetModuleValue(thread, module, binding->GetIndex()); in ProcessModuleLoadInfo()
87 JSHandle<SourceTextModule> module(thread, resolvedModule); in ProcessModuleLoadInfo() local
88 if (SourceTextModule::IsNativeModule(module->GetTypes())) { in ProcessModuleLoadInfo()
89 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
91 thread, currentModule, module, index, binding->GetBindingName()); in ProcessModuleLoadInfo()
93 if (module->GetTypes() == ModuleTypes::CJS_MODULE) { in ProcessModuleLoadInfo()
94 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessModuleLoadInfo()
96 thread, currentModule, module, index, binding->GetBindingName()); in ProcessModuleLoadInfo()
105 LOG_ECMA(FATAL) << "Get module value failed, mistaken ResolvedBinding"; in ProcessModuleLoadInfo()
114 // if requiredModule is Native module in ProcessModuleNameSpaceLoadInfo()
134 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetLazyModuleValueFromIndexBindingForLog() argument
150 auto isMergedAbc = !module->GetEcmaModuleRecordNameString().empty(); in GetLazyModuleValueFromIndexBindingForLog()
160 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetLazyModuleValueFromIndexBindingForLog()
166 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetLazyModuleValueFromRecordBindingForLog() argument
182 auto isMergedAbc = !module->GetEcmaModuleRecordNameString().empty(); in GetLazyModuleValueFromRecordBindingForLog()
183 CString fileName = module->GetEcmaModuleFilenameString(); in GetLazyModuleValueFromRecordBindingForLog()
192 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetLazyModuleValueFromRecordBindingForLog()
205 JSMutableHandle<SourceTextModule> module(thread, resolvedModule); in ProcessLazyModuleLoadInfo() local
212 context->FindPatchModule(module->GetEcmaModuleRecordNameString()); in ProcessLazyModuleLoadInfo()
215 module.Update(resolvedModule); in ProcessLazyModuleLoadInfo()
218 if (module->GetStatus() < ModuleStatus::EVALUATED) { in ProcessLazyModuleLoadInfo()
219 SourceTextModule::Evaluate(thread, module, nullptr, 0, ExecuteTypes::LAZY); in ProcessLazyModuleLoadInfo()
222 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessLazyModuleLoadInfo()
223 return ModuleManagerHelper::GetModuleValue(thread, module, binding->GetIndex()); in ProcessLazyModuleLoadInfo()
228 JSHandle<SourceTextModule> module(thread, resolvedModule); in ProcessLazyModuleLoadInfo() local
229 ModuleTypes moduleType = module->GetTypes(); in ProcessLazyModuleLoadInfo()
231 SourceTextModule::EvaluateNativeModule(thread, module, moduleType); in ProcessLazyModuleLoadInfo()
232 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessLazyModuleLoadInfo()
234 thread, currentModule, module, index, binding->GetBindingName()); in ProcessLazyModuleLoadInfo()
237 ModuleStatus status = module->GetStatus(); in ProcessLazyModuleLoadInfo()
239 SourceTextModule::ModuleExecution(thread, module, nullptr, 0); in ProcessLazyModuleLoadInfo()
240 SourceTextModule::RecordEvaluatedOrError(thread, module); in ProcessLazyModuleLoadInfo()
243 moduleLogger->InsertModuleLoadInfo(currentModule, module, index); in ProcessLazyModuleLoadInfo()
245 thread, currentModule, module, index, binding->GetBindingName()); in ProcessLazyModuleLoadInfo()
254 LOG_ECMA(FATAL) << "Get module value failed, mistaken ResolvedBinding"; in ProcessLazyModuleLoadInfo()