/arkcompiler/runtime_core/disassembler/tests/ |
D | testcase_list.txt | 1 # 1 is module mode, 0 is script mode 6 # module testcases 7 module/module-import-file.js 1 8 module/module-start-export.js 1 9 module/module-regular-import.js 1 10 module/module-local-export.js 1 11 module/module-indirect-export.js 1 12 module/module-namespace-import.js 1 13 module/module-multi-import.js 1
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_deregister.cpp | 47 JSHandle<SourceTextModule> module(thread, SourceTextModule::Cast(moduleVal.GetTaggedObject())); in FreeModuleRecord() local 48 LoadingTypes type = module->GetLoadingTypes(); in FreeModuleRecord() 49 JSTaggedValue moduleRecordName = SourceTextModule::GetModuleName(module.GetTaggedValue()); in FreeModuleRecord() 58 DecreaseRegisterCounts(thread, module, decreaseModule); in FreeModuleRecord() 59 uint16_t counts = module->GetRegisterCounts(); in FreeModuleRecord() 71 JSHandle<SourceTextModule> module = moduleManager->HostGetImportedModule(moduleName); in ReviseLoadedModuleCount() local 73 LoadingTypes type = module->GetLoadingTypes(); in ReviseLoadedModuleCount() 81 IncreaseRegisterCounts(thread, module, increaseModule); in ReviseLoadedModuleCount() 85 void ModuleDeregister::RemoveModule(JSThread *thread, JSHandle<SourceTextModule> module) in RemoveModule() argument 87 JSTaggedValue moduleRecordName = SourceTextModule::GetModuleName(module.GetTaggedValue()); in RemoveModule() [all …]
|
D | js_module_record.cpp | 21 int32_t ModuleRecord::Instantiate(JSThread *thread, const JSHandle<JSTaggedValue> &module) in Instantiate() argument 24 if (module->IsSourceTextModule()) { in Instantiate() 25 return SourceTextModule::Instantiate(thread, module); in Instantiate() 31 JSTaggedValue ModuleRecord::Evaluate(JSThread *thread, const JSHandle<JSTaggedValue> &module) in Evaluate() argument 33 if (module->IsSourceTextModule()) { in Evaluate() 34 JSHandle<SourceTextModule> moduleRecord = JSHandle<SourceTextModule>::Cast(module); in Evaluate() 41 JSTaggedValue ModuleRecord::GetNamespace(JSTaggedValue module) in GetNamespace() argument 43 if (module.IsSourceTextModule()) { in GetNamespace() 44 return SourceTextModule::Cast(module.GetTaggedObject())->GetNamespace(); in GetNamespace() 50 void ModuleRecord::SetNamespace(JSThread *thread, JSTaggedValue module, JSTaggedValue value) in SetNamespace() argument [all …]
|
D | js_module_source_text.cpp | 40 …ing> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, in GetExportedNames() argument 46 if (exportStarSet->GetIdx(module.GetTaggedValue()) != TaggedArray::MAX_ARRAY_INDEX) { in GetExportedNames() 54 newExportStarSet->Set(thread, len, module.GetTaggedValue()); in GetExportedNames() 56 JSTaggedValue entryValue = module->GetLocalExportEntries(); in GetExportedNames() 61 entryValue = module->GetIndirectExportEntries(); in GetExportedNames() 64 entryValue = module->GetStarExportEntries(); in GetExportedNames() 77 SetExportName(thread, moduleRequest, module, exportedNames, newExportStarSet); in GetExportedNames() 86 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR… in HostResolveImportedModuleWithMerge() argument 117 ASSERT(module->GetEcmaModuleFilename().IsHeapObject()); in HostResolveImportedModuleWithMerge() 118 CString baseFilename = ConvertToString(module->GetEcmaModuleFilename()); in HostResolveImportedModuleWithMerge() [all …]
|
D | js_module_source_text.h | 75 … const JSHandle<SourceTextModule> &module, 78 … const JSHandle<SourceTextModule> &module, 82 …c CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, 86 …c JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &module, 89 …ndle<JSTaggedValue> ResolveExportObject(JSThread *thread, const JSHandle<SourceTextModule> &module, 98 …void ModuleDeclarationEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &module); 99 …ModuleDeclarationArrayEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &module); 107 …ed<JSTaggedValue, bool> ModuleExecution(JSThread *thread, const JSHandle<SourceTextModule> &module, 111 static void ExecuteAsyncModule(JSThread *thread, const JSHandle<SourceTextModule> &module, 115 static void GatherAvailableAncestors(JSThread *thread, const JSHandle<SourceTextModule> &module, [all …]
|
D | js_module_deregister.h | 33 JSHandle<SourceTextModule> module = JSHandle<SourceTextModule>::Cast(moduleRecord); in InitForDeregisterModule() local 34 module->SetLoadingTypes(moduleLoadingType); in InitForDeregisterModule() 35 module->SetRegisterCounts(1); in InitForDeregisterModule() 50 static void RemoveModule(JSThread *thread, JSHandle<SourceTextModule> module); 54 static void IncreaseRegisterCounts(JSThread *thread, JSHandle<SourceTextModule> module, 57 static void DecreaseRegisterCounts(JSThread *thread, JSHandle<SourceTextModule> module,
|
/arkcompiler/runtime_core/disassembler/tests/expected/ |
D | module-multi-import.pa | 1 # source binary: module-multi-import.abc 10 …module-multi-export.js; ModuleTag: REGULAR_IMPORT, local_name: b1, import_name: b1, module_request… 12 …module-export-file.js; ModuleTag: LOCAL_EXPORT, local_name: FunctionC, export_name: FunctionC, mod… 25 .record module-export-file { 31 .record module-multi-export { 37 .record module-multi-import { 46 .function any module-export-file.func_main_0(any a0, any a1, any a2) <static> { 57 .function any module-multi-export.ClassB(any a0, any a1, any a2) <static> { 62 .function any module-multi-export.FunctionC(any a0, any a1, any a2) <static> { 67 .function any module-multi-export.fun1(any a0, any a1, any a2, any a3, any a4) <static> { [all …]
|
D | module-import-file.pa | 1 # source binary: module-import-file.abc 8 0 0x586 { 1 [ ModuleTag: INDIRECT_EXPORT, export_name: a, import_name: a, module_request: ./module-… 9 1 0x47a { 1 [ ModuleTag: STAR_EXPORT, module_request: ./module-import-file.js; ]} 11 …module-indirect-export.js; ModuleTag: REGULAR_IMPORT, local_name: b, import_name: b, module_reques… 24 .record module-import-file { 30 .record module-indirect-export { 36 .record module-local-export { 42 .record module-start-export { 51 .function any module-import-file.func_main_0(any a0, any a1, any a2) <static> { 56 .function any module-indirect-export.func_main_0(any a0, any a1, any a2) <static> { [all …]
|
D | module-indirect-export.pa | 1 # source binary: module-indirect-export.abc 8 0 0x586 { 1 [ ModuleTag: INDIRECT_EXPORT, export_name: a, import_name: a, module_request: ./module-… 9 1 0x47a { 1 [ ModuleTag: STAR_EXPORT, module_request: ./module-import-file.js; ]} 11 …module-indirect-export.js; ModuleTag: REGULAR_IMPORT, local_name: b, import_name: b, module_reques… 24 .record module-import-file { 30 .record module-indirect-export { 36 .record module-local-export { 42 .record module-start-export { 51 .function any module-import-file.func_main_0(any a0, any a1, any a2) <static> { 56 .function any module-indirect-export.func_main_0(any a0, any a1, any a2) <static> { [all …]
|
D | module-start-export.pa | 1 # source binary: module-start-export.abc 8 0 0x586 { 1 [ ModuleTag: INDIRECT_EXPORT, export_name: a, import_name: a, module_request: ./module-… 9 1 0x47a { 1 [ ModuleTag: STAR_EXPORT, module_request: ./module-import-file.js; ]} 11 …module-indirect-export.js; ModuleTag: REGULAR_IMPORT, local_name: b, import_name: b, module_reques… 24 .record module-import-file { 30 .record module-indirect-export { 36 .record module-local-export { 42 .record module-start-export { 51 .function any module-import-file.func_main_0(any a0, any a1, any a2) <static> { 56 .function any module-indirect-export.func_main_0(any a0, any a1, any a2) <static> { [all …]
|
D | module-namespace-import.pa | 1 # source binary: module-namespace-import.abc 8 0 0x318 { 1 [ ModuleTag: NAMESPACE_IMPORT, local_name: ns, module_request: ./module-export-file.js;… 22 .record module-export-file { 28 .record module-namespace-import { 37 .function any module-export-file.func_main_0(any a0, any a1, any a2) <static> { 48 .function any module-namespace-import.func_main_0(any a0, any a1, any a2) <static> {
|
D | module-regular-import.pa | 1 # source binary: module-regular-import.abc 9 1 0x20f { 1 [ ModuleTag: REGULAR_IMPORT, local_name: a, import_name: a, module_request: ./module-ex… 22 .record module-export-file { 28 .record module-regular-import { 37 .function any module-export-file.func_main_0(any a0, any a1, any a2) <static> { 48 .function any module-regular-import.func_main_0(any a0, any a1, any a2) <static> {
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/ |
D | verify_mark.cpp | 24 AnalysisResult *DoVerifyMark::Run(MIRModule *module, ModuleResultMgr *mgr) in Run() argument 28 CHECK_FATAL(module != nullptr, "Module should not be null"); in Run() 30 auto chaAnalysis = mgr->GetAnalysisResult(MoPhase_CHA, module); in Run() 35 auto verifyAnalysis = mgr->GetAnalysisResult(MoPhase_VERIFICATION, module); in Run() 51 AddAnnotations(*module, klass, classResult.second); in Run() 58 void DoVerifyMark::AddAnnotations(MIRModule &module, const Klass &klass, in AddAnnotations() argument 71 AddVerfAnnoThrowVerifyError(module, *pragma, *mirStructType); in AddAnnotations() 85 AddVerfAnnoExtendFinalCheck(module, *mirStructType); in AddAnnotations() 89 AddVerfAnnoOverrideFinalCheck(module, *mirStructType); in AddAnnotations() 96 AddVerfAnnoAssignableCheck(module, assignableCheckPragmaVec, *mirStructType); in AddAnnotations()
|
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
D | recipe119.md | 1 # Importing a module for side-effects only is not supported 8 side-effects during module importing. All variables marked as export can be 17 // === module at "path/to/module.ts" 23 // ==== using this module: 24 import "path/to/module" 33 import * as m from "path/to/module"
|
D | recipe128.md | 1 # Ambient module declaration is not supported 7 ArkTS does not support ambient module declaration because it has its 16 declare module "someModule" { 27 // Import what you need from the original module 34 - Recipe 129: Wildcards in module names are not supported (``arkts-no-module-wildcards``)
|
D | recipe129.md | 1 # Wildcards in module names are not supported 3 Rule ``arkts-no-module-wildcards`` 7 ArkTS does not support wildcards in module names because in the language 18 declare module "*!text" { 39 import * as m from "module" 46 - Recipe 128: Ambient module declaration is not supported (``arkts-no-ambient-decls``) 47 - Recipe 130: Universal module definitions (UMD) are not supported (``arkts-no-umd``)
|
/arkcompiler/ets_frontend/ets2panda/linter-4.2/docs/rules/ |
D | recipe119.md | 1 # Importing a module for side-effects only is not supported 8 side-effects during module importing. All variables marked as export can be 17 // === module at "path/to/module.ts" 23 // ==== using this module: 24 import "path/to/module" 33 import * as m from "path/to/module"
|
D | recipe128.md | 1 # Ambient module declaration is not supported 7 ArkTS does not support ambient module declaration because it has its 16 declare module "someModule" { 27 // Import what you need from the original module 34 - Recipe 129: Wildcards in module names are not supported (``arkts-no-module-wildcards``)
|
D | recipe129.md | 1 # Wildcards in module names are not supported 3 Rule ``arkts-no-module-wildcards`` 7 ArkTS does not support wildcards in module names because in the language 18 declare module "*!text" { 39 import * as m from "module" 46 - Recipe 128: Ambient module declaration is not supported (``arkts-no-ambient-decls``) 47 - Recipe 130: Universal module definitions (UMD) are not supported (``arkts-no-umd``)
|
/arkcompiler/ets_runtime/test/quickfix/module_class/ |
D | expect_output.txt | 17 module patch B : module patch name 18 module patch P : module patch age 19 module patch C 20 module patch D : module patch name 25 module base B : module base name
|
/arkcompiler/ets_runtime/ecmascript/module/tests/module_test/ |
D | module_test_module_test_C.js | 16 import {a, b, module} from './module_test_module_test_B.js'; 19 let c = new obj.Test(obj.module); 21 if (module === obj.module) { 22 print(module);
|
/arkcompiler/ets_runtime/ecmascript/napi/test/js/ |
D | termination_3.js | 16 import {a, b, module} from './termination_2.js'; 19 let c = new obj.Test(obj.module); 21 if (module === obj.module) { 22 print(module);
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/ |
D | litecg.cpp | 33 LiteCG::LiteCG(Module &mirModule) : module(mirModule) in LiteCG() 45 std::string moduleName = module.GetFileName(); in LiteCG() 50 module.PushFileInfoPair(MIRInfoPair(nameStrIdx, fileNameStrIdx.GetIdx())); in LiteCG() 51 module.PushFileInfoIsString(true); in LiteCG() 53 module.SetFlavor(kFlavorUnknown); // need a new flavor in LiteCG() 54 module.GetImportFiles().clear(); in LiteCG() 57 module.SetOutputFileName(moduleName + ".s"); in LiteCG() 88 module.DumpToFile(fileName); in DumpIRToFile() 132 (void)cgfuncPhaseManager->PhaseRun(module); in DoCG()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
D | verification.h | 26 VerifyResult(const MIRModule &module, const KlassHierarchy &klassHierarchy, MemPool &memPool) in VerifyResult() argument 27 : module(module), in VerifyResult() 44 return module; in GetMIRModule() 49 return module.GetFunctionList().front(); in GetCurrentFunction() 94 const MIRModule &module; variable 125 AnalysisResult *Run(MIRModule *module, ModuleResultMgr *mgr) override; 134 void VerifyModule(MIRModule &module, VerifyResult &result) const;
|
/arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
D | modules.rst | 20 Each module creates its own scope, i.e., any declarations (variables, 21 functions, classes, etc.) declared in the module are only visible outside 22 that module if exported explicitly. 25 another module must first be imported to a module. 35 only in the module it is declared in: 58 and to provide their bindings in the current module. An import declaration 61 * Import path that determines the module to import from; 63 module, and the form of use (i.e., qualified or unqualified use). 67 If a module has the path '``./utils``', export entities 'X' and 'Y', and 70 from the module defined by the import path: [all …]
|