| /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
|
| D | disassembler_module_literal_test.cpp | 46 * @tc.desc: get module literal of abc file. 52 const std::string file_name = GRAPH_TEST_ABC_DIR "module-regular-import.abc"; 54 "\tMODULE_REQUEST_ARRAY: {\n\t\t0 : ./module-export-file.js,\n\t}", 55 …"\tModuleTag: REGULAR_IMPORT, local_name: a, import_name: a, module_request: ./module-export-file.… 66 * @tc.desc: get module literal of abc file. 72 const std::string file_name = GRAPH_TEST_ABC_DIR "module-namespace-import.abc"; 74 "\tMODULE_REQUEST_ARRAY: {\n\t\t0 : ./module-export-file.js,\n\t}", 75 "\tModuleTag: NAMESPACE_IMPORT, local_name: ns, module_request: ./module-export-file.js" 86 * @tc.desc: get module literal of abc file. 92 const std::string file_name = GRAPH_TEST_ABC_DIR "module-local-export.abc"; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | shared_module.ts.json | 22 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 29 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 36 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 43 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 50 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 57 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 64 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 71 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 78 …"rule": "\"export * from ...\" is not allowed in shared module (arkts-shared-module-no-wildcard-ex… 85 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" [all …]
|
| D | ambient_module.ts.json | 22 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)" 36 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)" 43 "rule": "Wildcards in module names are not supported (arkts-no-module-wildcards)" 57 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)" 64 "rule": "Wildcards in module names are not supported (arkts-no-module-wildcards)" 78 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)" 85 "rule": "Wildcards in module names are not supported (arkts-no-module-wildcards)" 92 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)"
|
| /arkcompiler/ets_runtime/ecmascript/module/ |
| D | js_module_deregister.cpp | 16 #include "ecmascript/module/js_module_deregister.h" 19 #include "ecmascript/module/js_module_manager.h" 20 #include "ecmascript/module/module_path_helper.h" 28 LOG_FULL(FATAL) << "Lacking deregister module's name."; in FreeModuleRecord() 35 // pointer is module's name, which will be deregistered. in FreeModuleRecord() 41 JSHandle<SourceTextModule> module(thread, SourceTextModule::Cast(moduleVal.GetTaggedObject())); in FreeModuleRecord() local 42 LoadingTypes type = module->GetLoadingTypes(); in FreeModuleRecord() 43 CString recordNameStr = SourceTextModule::GetModuleName(module.GetTaggedValue()); in FreeModuleRecord() 45 LOG_FULL(INFO) << "free stable module's ModuleNameSpace" << recordNameStr; in FreeModuleRecord() 51 DecreaseRegisterCounts(thread, module, decreaseModule); in FreeModuleRecord() [all …]
|
| D | js_module_source_text.cpp | 16 #include "ecmascript/module/js_module_source_text.h" 23 #include "ecmascript/module/module_logger.h" 24 #include "ecmascript/module/js_shared_module_manager.h" 25 #include "ecmascript/module/module_path_helper.h" 35 …ing> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, in GetExportedNames() argument 39 // 1. Let module be this Source Text Module Record. in GetExportedNames() 40 // 2. If exportStarSet contains module, then in GetExportedNames() 41 if (exportStarSet->GetIdx(module.GetTaggedValue()) != TaggedArray::MAX_ARRAY_INDEX) { in GetExportedNames() 46 // 3. Append module to exportStarSet. in GetExportedNames() 49 newExportStarSet->Set(thread, len, module.GetTaggedValue()); in GetExportedNames() [all …]
|
| D | module_tools.cpp | 16 #include "ecmascript/module/module_tools.h" 20 #include "ecmascript/module/js_shared_module.h" 21 #include "ecmascript/module/module_logger.h" 22 #include "ecmascript/module/module_manager_helper.h" 29 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetModuleValueFromIndexBindingForLog() argument 33 ModuleManagerHelper::GetResolvedRecordIndexBindingModule(thread, module, binding); in GetModuleValueFromIndexBindingForLog() 36 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetModuleValueFromIndexBindingForLog() 42 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetModuleValueFromRecordBindingForLog() argument 46 ModuleManagerHelper::GetResolvedRecordBindingModule(thread, module, binding); in GetModuleValueFromRecordBindingForLog() 49 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetModuleValueFromRecordBindingForLog() [all …]
|
| D | js_shared_module_manager.cpp | 15 #include "ecmascript/module/js_shared_module_manager.h" 19 #include "ecmascript/module/module_manager_helper.h" 20 #include "ecmascript/module/module_path_helper.h" 57 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetSendableModuleValueImpl() local 58 JSTaggedValue moduleEnvironment = module->GetEnvironment(); in GetSendableModuleValueImpl() 65 return ModuleManagerHelper::GetModuleValueFromIndexBinding(thread, module, resolvedBinding); in GetSendableModuleValueImpl() 71 … return ModuleManagerHelper::GetModuleValueFromRecordBinding(thread, module, resolvedBinding); in GetSendableModuleValueImpl() 91 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetLazySendableModuleValueImpl() local 92 JSTaggedValue moduleEnvironment = module->GetEnvironment(); in GetLazySendableModuleValueImpl() 99 … return ModuleManagerHelper::GetLazyModuleValueFromIndexBinding(thread, module, resolvedBinding); in GetLazySendableModuleValueImpl() [all …]
|
| D | module_manager_helper.cpp | 15 #include "ecmascript/module/module_manager_helper.h" 20 #include "ecmascript/module/module_path_helper.h" 23 …ModuleManagerHelper::GetModuleValue(JSThread *thread, JSHandle<SourceTextModule> module, int index) in GetModuleValue() argument 25 ModuleTypes moduleType = module->GetTypes(); in GetModuleValue() 27 return GetNativeOrCjsModuleValue(thread, module.GetTaggedValue(), index); in GetModuleValue() 29 return module->GetModuleValue(thread, index, false); in GetModuleValue() 43 JSHandle<SourceTextModule> module(thread, resolvedModule); in GetNativeOrCjsExports() local 46 ModuleTypes moduleType = module->GetTypes(); in GetNativeOrCjsExports() 48 exports.Update(module->GetModuleValue(thread, 0, false)); in GetNativeOrCjsExports() 50 …LOG_FULL(WARN) << "Load native module failed, so is " << SourceTextModule::GetModuleName(resolvedM… in GetNativeOrCjsExports() [all …]
|
| D | module_manager_helper.h | 19 #include "ecmascript/module/js_module_source_text.h" 25 …gedValue PUBLIC_API GetModuleValue(JSThread *thread, JSHandle<SourceTextModule> module, int index); 28 JSHandle<SourceTextModule> module, 39 … JSHandle<SourceTextModule> module, 43 … JSHandle<SourceTextModule> module, 47 …JSThread *thread, JSHandle<SourceTextModule> module, JSHandle<ResolvedRecordIndexBinding> binding); 50 … JSThread *thread, JSHandle<SourceTextModule> module, JSHandle<ResolvedRecordBinding> binding); 53 JSHandle<SourceTextModule> module, 57 JSHandle<SourceTextModule> module, 60 …c JSTaggedValue UpdateBindingAndGetModuleValue(JSThread *thread, JSHandle<SourceTextModule> module,
|
| D | js_module_source_text.h | 21 #include "ecmascript/module/js_module_record.h" 22 #include "ecmascript/module/js_module_entry.h" 86 … const JSHandle<SourceTextModule> &module, 90 … const JSHandle<SourceTextModule> &module, 97 …c CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, 101 …c JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &module, 104 …ndle<JSTaggedValue> ResolveExportObject(JSThread *thread, const JSHandle<SourceTextModule> &module, 113 // 15.2.1.16.4.1 InnerModuleInstantiation ( module, stack, index ) 118 // 15.2.1.16.4.2 ModuleDeclarationEnvironmentSetup ( module ) 119 …void ModuleDeclarationEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &module); [all …]
|
| /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-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-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 …]
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/transforms/ |
| D | builtins.h | 27 llvm::Function *LenArray(llvm::Module *module); 28 llvm::Function *LoadClass(llvm::Module *module); 29 llvm::Function *LoadInitClass(llvm::Module *module); 30 llvm::Function *PreWRB(llvm::Module *module, unsigned addrSpace); 31 llvm::Function *PostWRB(llvm::Module *module, unsigned addrSpace); 32 llvm::Function *LoadString(llvm::Module *module); 33 llvm::Function *ResolveVirtual(llvm::Module *module); 34 llvm::Function *BarrierReturnVoid(llvm::Module *module); 35 llvm::Function *KeepThis(llvm::Module *module);
|
| D | builtins.cpp | 88 auto module = function->getParent(); in SlowClassLoadingHelper() local 102 auto aotGot = module->getGlobalVariable("__aot_got"); in SlowClassLoadingHelper() 187 llvm::Function *LenArray(llvm::Module *module) in LenArray() argument 189 auto function = module->getFunction(LEN_ARRAY_BUILTIN); in LenArray() 193 auto type = llvm::FunctionType::get(llvm::Type::getInt32Ty(module->getContext()), in LenArray() 194 … {llvm::PointerType::get(module->getContext(), LLVMArkInterface::GC_ADDR_SPACE), in LenArray() 195 llvm::Type::getInt32Ty(module->getContext())}, in LenArray() 197 …unction = llvm::Function::Create(type, llvm::Function::ExternalLinkage, LEN_ARRAY_BUILTIN, module); in LenArray() 205 llvm::Function *KeepThis(llvm::Module *module) in KeepThis() argument 207 auto function = module->getFunction(KEEP_THIS_BUILTIN); in KeepThis() [all …]
|
| /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/runtime_core/disassembler/tests/module/ |
| D | module-multi-import.js | 17 flags: [module] 21 import { a } from './module-multi-export.js'; 22 import { b1, b2 } from './module-multi-export.js'; 23 import { c } from './module-multi-export.js'; 25 import dd from './module-multi-export.js'; 27 import ee, * as n from './module-multi-export.js'; 28 import * as ns from './module-multi-export.js'; 30 import { f as ff } from './module-multi-export.js'; 31 import { g, h as hh } from './module-multi-export.js'; 33 import './module-multi-export.js';
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-keyword-identify5.ts | 17 var declare = 0, module = 1, ns = 2; variable 18 module = 2; 19 module++; 21 module 26 module 30 module M {} 32 declare module "module" {}
|
| D | test_module.ts | 32 module a.b.c { 39 module a.b.c { 53 declare module "foo"; 57 module module1 { 63 export module module2 { 69 declare module module3 { 73 export declare module module4 { 77 declare module "foo" {
|
| /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 …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| 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``)
|
| 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``)
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
| D | test_module.ts | 32 module a.b.c { 39 module a.b.c { 53 declare module "foo"; 57 module module1 { 63 export module module2 { 69 declare module module3 { 73 export declare module module4 { 77 declare module "foo" {
|