• Home
  • Raw
  • Download

Lines Matching full:module

26 #include "ecmascript/module/js_module_manager.h"
27 #include "ecmascript/module/js_module_source_text.h"
64 * Feature: Module
68 * CaseDescription: Add two import item and check module import entries size
73 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() local
75 SourceTextModule::AddImportEntry(thread, module, importEntry1, 0, 2); in HWTEST_F_L0()
77 SourceTextModule::AddImportEntry(thread, module, importEntry2, 1, 2); in HWTEST_F_L0()
78 JSHandle<TaggedArray> importEntries(thread, module->GetImportEntries()); in HWTEST_F_L0()
83 * Feature: Module
87 * CaseDescription: Add two local export item and check module local export entries size
92 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() local
94 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry1, 0, 2); in HWTEST_F_L0()
96 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry2, 1, 2); in HWTEST_F_L0()
97 JSHandle<TaggedArray> localExportEntries(thread, module->GetLocalExportEntries()); in HWTEST_F_L0()
102 * Feature: Module
106 * CaseDescription: Add two indirect export item and check module indirect export entries size
111 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() local
113 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry1, 0, 2); in HWTEST_F_L0()
115 SourceTextModule::AddIndirectExportEntry(thread, module, indirectExportEntry2, 1, 2); in HWTEST_F_L0()
116 JSHandle<TaggedArray> indirectExportEntries(thread, module->GetIndirectExportEntries()); in HWTEST_F_L0()
121 * Feature: Module
125 * CaseDescription: Add two start export item and check module start export entries size
130 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() local
132 SourceTextModule::AddStarExportEntry(thread, module, starExportEntry1, 0, 2); in HWTEST_F_L0()
134 SourceTextModule::AddStarExportEntry(thread, module, starExportEntry2, 1, 2); in HWTEST_F_L0()
135 JSHandle<TaggedArray> startExportEntries(thread, module->GetStarExportEntries()); in HWTEST_F_L0()
140 * Feature: Module
143 * FunctionPoints: store a module export item in module
158 JSHandle<SourceTextModule> module = objFactory->NewSourceTextModule(); in HWTEST_F_L0() local
159 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry, 0, 1); in HWTEST_F_L0()
163 module->StoreModuleValue(thread, storeKey, valueHandle); in HWTEST_F_L0()
166 JSTaggedValue loadValue = module->GetModuleValue(thread, loadKey.GetTaggedValue(), false); in HWTEST_F_L0()
171 * Feature: Module
174 * FunctionPoints: load module value from module
193 // store module value in HWTEST_F_L0()
241 JSHandle<SourceTextModule> module = factory->NewSourceTextModule(); in HWTEST_F_L0() local
242 JSHandle<JSTaggedValue> moduleRecord(thread, module.GetTaggedValue()); in HWTEST_F_L0()
252 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() local
254 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry1, 0, 2); in HWTEST_F_L0()
256 SourceTextModule::AddLocalExportEntry(thread, module, localExportEntry2, 1, 2); in HWTEST_F_L0()
257 JSHandle<TaggedArray> localExportEntries(thread, module->GetLocalExportEntries()); in HWTEST_F_L0()
259 …ModuleNamespace::ModuleNamespaceCreate(thread, JSHandle<JSTaggedValue>::Cast(module), localExportE… in HWTEST_F_L0()
273 …JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule("module_test_module_test_… in HWTEST_F_L0() local
274 module->SetStatus(ModuleStatus::UNINSTANTIATED); in HWTEST_F_L0()
275 ModuleRecord::Instantiate(thread, JSHandle<JSTaggedValue>(module)); in HWTEST_F_L0()
276 int res = ModuleRecord::Evaluate(thread, JSHandle<JSTaggedValue>(module)); in HWTEST_F_L0()
277 ModuleRecord::GetNamespace(module.GetTaggedValue()); in HWTEST_F_L0()
278 ModuleRecord::SetNamespace(thread, module.GetTaggedValue(), JSTaggedValue::Undefined()); in HWTEST_F_L0()