Home
last modified time | relevance | path

Searched full:module (Results 1 – 25 of 890) sorted by relevance

12345678910>>...36

/arkcompiler/runtime_core/disassembler/tests/
Dtestcase_list.txt1 # 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/
Djs_module_source_text.cpp16 #include "ecmascript/module/js_module_source_text.h"
28 #include "ecmascript/module/js_module_deregister.h"
29 #include "ecmascript/module/js_module_manager.h"
30 #include "ecmascript/module/js_module_namespace.h"
31 #include "ecmascript/module/module_data_extractor.h"
32 #include "ecmascript/module/module_path_helper.h"
40 …ing> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, in GetExportedNames() argument
44 // 1. Let module be this Source Text Module Record. in GetExportedNames()
45 // 2. If exportStarSet contains module, then in GetExportedNames()
46 if (exportStarSet->GetIdx(module.GetTaggedValue()) != TaggedArray::MAX_ARRAY_INDEX) { in GetExportedNames()
[all …]
Djs_module_deregister.cpp15 #include "ecmascript/module/js_module_deregister.h"
23 #include "ecmascript/module/js_module_manager.h"
24 #include "ecmascript/module/js_module_source_text.h"
25 #include "ecmascript/module/module_data_extractor.h"
36 LOG_FULL(FATAL) << "Lacking deregister module's name."; in FreeModuleRecord()
41 // pointer is module's name, which will be deregistered. in FreeModuleRecord()
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()
52 LOG_FULL(INFO) << "free stable module's ModuleNameSpace" << recordNameStr; in FreeModuleRecord()
[all …]
Djs_module_record.cpp16 #include "ecmascript/module/js_module_record.h"
17 #include "ecmascript/module/js_module_source_text.h"
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()
[all …]
Djs_module_source_text.h21 #include "ecmascript/module/js_module_record.h"
22 #include "ecmascript/module/js_module_entry.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,
92 // 15.2.1.16.4.1 InnerModuleInstantiation ( module, stack, index )
97 // 15.2.1.16.4.2 ModuleDeclarationEnvironmentSetup ( module )
98 …void ModuleDeclarationEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &module);
[all …]
/arkcompiler/runtime_core/disassembler/tests/expected/
Dmodule-multi-import.pa1 # source binary: module-multi-import.abc
10module-multi-export.js; ModuleTag: REGULAR_IMPORT, local_name: b1, import_name: b1, module_request…
12module-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 …]
Dmodule-import-file.pa1 # 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; ]}
11module-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 …]
Dmodule-indirect-export.pa1 # 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; ]}
11module-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 …]
Dmodule-start-export.pa1 # 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; ]}
11module-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/ets_runtime/test/quickfix/module_class/
Dexpect_output.txt17 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/
Dmodule-multi-import.js17 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/runtime_core/static_core/libllvmbackend/transforms/passes/
Dpasses.yaml17 module: 'Pass runs on the whole llvm IR module'
31 Remove functions and variables unsuitable for inlining from module.
32 type: [module]
37 Discard all functions and global variables from inline module.
38 type: [module]
43 Mark all functions and global variables from inline module
45 type: [module]
50 Remove unused functions from the module.
53 type: [module]
63 type: [module]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-keyword-identify5.ts17 var declare = 0, module = 1, ns = 2; variable
18 module = 2;
19 module++;
21 module
26 module
30 module M {}
32 declare module "module" {}
Dtest_module.ts32 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/
Dmodules.rst20 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/
Drecipe119.md1 # 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"
Drecipe129.md1 # 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/
Drecipe119.md1 # 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"
Drecipe129.md1 # 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``)
Drecipe128.md1 # 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/linter/test/
Dambient_module.ts.relax.json22 "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)"
Dambient_module.ts.strict.json22 "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_frontend/ets2panda/linter-4.2/test/
Dambient_module.ts.relax.json22 "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)"
Dambient_module.ts.strict.json22 "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_frontend/ets2panda/test/parser/ts/
Dtest_module.ts32 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" {

12345678910>>...36