Home
last modified time | relevance | path

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

12345678910>>...77

/arkcompiler/runtime_core/libabckit/include/cpp/headers/arkts/
Dmodule.h19 #include "../core/module.h"
30 * @brief Module
32 class Module final : public core::Module {
37 /// @brief abckit::DefaultHash<Module>
38 friend class abckit::DefaultHash<Module>;
40 friend class abckit::traits::TargetCheckCast<Module>;
44 * @brief Constructor Arkts API Module from the Core API with compatibility check
45 * @param coreOther - Core API Module
47 explicit Module(const core::Module &coreOther);
50 * @brief Construct a new Module object
[all …]
/arkcompiler/runtime_core/libabckit/include/cpp/headers/js/
Dmodule.h19 #include "../core/module.h"
29 * @brief Module
31 class Module final : public core::Module {
36 /// @brief abckit::DefaultHash<Module>
37 friend class abckit::DefaultHash<Module>;
39 friend class abckit::traits::TargetCheckCast<Module>;
43 * @brief Constructor Arkts API Module from the Core API with compatibility check
44 * @param coreModule - Core API Module
46 explicit Module(const core::Module &coreModule);
49 * @brief Construct a new Module object
[all …]
Dmodule_impl.h19 #include "module.h"
24 inline AbckitJsModule *Module::TargetCast() const in TargetCast()
31 inline Module::Module(const core::Module &coreModule) : core::Module(coreModule), targetChecker_(th… in Module() function
33 inline ImportDescriptor Module::AddImportFromJsToJs(Module imported, std::string_view name, in AddImportFromJsToJs()
44 inline Module Module::RemoveImport(ImportDescriptor desc) const in RemoveImport()
51 inline ExportDescriptor Module::AddExportFromJsToJs(Module exported, std::string_view name, in AddExportFromJsToJs()
62 inline Module Module::RemoveExport(ExportDescriptor desc) const in RemoveExport()
/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_frontend/ets2panda/test/parser/ets/dynamic_import_tests/modules/
Dmodule-expected.txt15 "program": "module.ets"
20 "program": "module.ets"
37 "program": "module.ets"
42 "program": "module.ets"
64 "program": "module.ets"
69 "program": "module.ets"
77 "program": "module.ets"
82 "program": "module.ets"
90 "program": "module.ets"
95 "program": "module.ets"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/module_ops/
Dmodule_find_variable_test.cpp25 ani_module module {}; in TEST_F() local
26 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_variable_test;", &module), ANI_OK); in TEST_F()
27 ASSERT_NE(module, nullptr); in TEST_F()
30 ASSERT_EQ(env_->Module_FindVariable(module, "moduleX", &variable), ANI_OK); in TEST_F()
37 ASSERT_EQ(env_->Module_FindVariable(module, "moduleS", &variable), ANI_OK); in TEST_F()
43 ani_module module {}; in TEST_F() local
44 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_variable_test;", &module), ANI_OK); in TEST_F()
45 ASSERT_NE(module, nullptr); in TEST_F()
48 ASSERT_EQ(env_->Module_FindVariable(module, "moduleXS", &variable), ANI_OK); in TEST_F()
54 ani_module module {}; in TEST_F() local
[all …]
Dmodule_find_class_test.cpp25 ani_module module {}; in TEST_F() local
26 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_class_test;", &module), ANI_OK); in TEST_F()
27 ASSERT_NE(module, nullptr); in TEST_F()
30 ASSERT_EQ(env_->Module_FindClass(module, "LATest;", &kclass), ANI_OK); in TEST_F()
32 ASSERT_EQ(env_->Module_FindClass(module, "LBTest;", &kclass), ANI_OK); in TEST_F()
34 ASSERT_EQ(env_->Module_FindClass(module, "Lops/C;", &kclass), ANI_OK); in TEST_F()
40 ani_module module {}; in TEST_F() local
41 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_class_test;", &module), ANI_OK); in TEST_F()
42 ASSERT_NE(module, nullptr); in TEST_F()
45 ASSERT_EQ(env_->Module_FindClass(module, "LAA;", &kclass), ANI_OK); in TEST_F()
[all …]
Dmodule_find_function_test.cpp44 ani_module module {}; in TEST_F() local
45 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_function_test;", &module), ANI_OK); in TEST_F()
46 ASSERT_NE(module, nullptr); in TEST_F()
49 ASSERT_EQ(env_->Module_FindFunction(module, "getInitialIntValue", ":I", &fn), ANI_OK); in TEST_F()
52 ASSERT_EQ(env_->Module_FindFunction(module, "getIntValue", "Lstd/core/String;:I", &fn), ANI_OK); in TEST_F()
60 ASSERT_EQ(env_->Module_FindFunction(module, "getIntValue", "I:I", &fn), ANI_OK); in TEST_F()
64 ASSERT_EQ(env_->Module_FindFunction(module, "getIntValue", ":I", &fn), ANI_OK); in TEST_F()
72 ani_module module {}; in TEST_F() local
73 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_function_test;", &module), ANI_OK); in TEST_F()
74 ASSERT_NE(module, nullptr); in TEST_F()
[all …]
Dmodule_find_namespace_test.cpp62 ani_module module {}; in TEST_F() local
63 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_namespace_test;", &module), ANI_OK); in TEST_F()
64 ASSERT_NE(module, nullptr); in TEST_F()
66 ASSERT_EQ(env_->Module_FindNamespace(module, "Lops;", &ns), ANI_OK); in TEST_F()
68 ASSERT_EQ(env_->Module_FindNamespace(module, "Louter/inner;", &ns), ANI_OK); in TEST_F()
70 ASSERT_EQ(env_->Module_FindNamespace(module, "Lopst;", &ns), ANI_OK); in TEST_F()
76 ani_module module {}; in TEST_F() local
77 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_namespace_test;", &module), ANI_OK); in TEST_F()
78 ASSERT_NE(module, nullptr); in TEST_F()
81 ASSERT_EQ(env_->Module_FindNamespace(module, "Lops;", &ns), ANI_OK); in TEST_F()
[all …]
Dmodule_find_enum_test.cpp48 ani_module module {}; in TEST_F() local
49 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_enum_test;", &module), ANI_OK); in TEST_F()
50 ASSERT_NE(module, nullptr); in TEST_F()
54 ASSERT_EQ(env_->Module_FindEnum(module, "LColor;", &aniEnum), ANI_OK); in TEST_F()
58 ASSERT_EQ(env_->Module_FindEnum(module, "LColorAAA;", &aniEnum), ANI_NOT_FOUND); in TEST_F()
61 ASSERT_EQ(env_->Module_FindEnum(module, "LColorInt;", &aniEnumInt), ANI_OK); in TEST_F()
66 ASSERT_EQ(env_->Module_FindEnum(module, "LColorString;", &aniEnumString), ANI_OK); in TEST_F()
73 ani_module module {}; in TEST_F() local
74 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_enum_test;", &module), ANI_OK); in TEST_F()
75 ASSERT_NE(module, nullptr); in TEST_F()
[all …]
Dmodule_find_combination_test.cpp24 ani_module module {}; in TEST_F() local
25 ASSERT_EQ(env_->FindModule("L@abcModule/module_find_combination_test;", &module), ANI_OK); in TEST_F()
26 ASSERT_NE(module, nullptr); in TEST_F()
38 std::string variableName = "module"; in TEST_F()
50 ASSERT_EQ(env_->Module_FindClass(module, className.c_str(), &kclass), ANI_OK); in TEST_F()
51 ASSERT_EQ(env_->Module_FindNamespace(module, namespaceName.c_str(), &ns), ANI_OK); in TEST_F()
52 ASSERT_EQ(env_->Module_FindFunction(module, functionName.c_str(), "I:V", &fn), ANI_OK); in TEST_F()
53 ASSERT_EQ(env_->Module_FindVariable(module, variableName.c_str(), &variable), ANI_OK); in TEST_F()
54 ASSERT_EQ(env_->Module_FindEnum(module, enumName.c_str(), &aniEnum), ANI_OK); in TEST_F()
60 ani_module module {}; in TEST_F() local
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dshared_module.ets.json24 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
34 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
44 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
54 …"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)…
74 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
84 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
94 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
104 …"rule": "\"export * from ...\" is not allowed in shared module (arkts-shared-module-no-wildcard-ex…
114 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_deregister.cpp15 #include "ecmascript/module/js_module_deregister.h"
20 #include "ecmascript/module/js_module_source_text.h"
21 #include "ecmascript/module/module_path_helper.h"
22 #include "ecmascript/module/module_resolver.h"
30 LOG_FULL(FATAL) << "Lacking deregister module's name."; in FreeModuleRecord()
37 // 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 CString recordNameStr = SourceTextModule::GetModuleName(module.GetTaggedValue()); in FreeModuleRecord()
51 LOG_FULL(INFO) << "free stable module's ModuleNameSpace" << recordNameStr; in FreeModuleRecord()
[all …]
Djs_module_source_text.cpp16 #include "ecmascript/module/js_module_source_text.h"
23 #include "ecmascript/module/js_shared_module_manager.h"
24 #include "ecmascript/module/module_logger.h"
25 #include "ecmascript/module/module_message_helper.h"
26 #include "ecmascript/module/module_path_helper.h"
28 #include "ecmascript/module/module_value_accessor.h"
29 #include "ecmascript/module/module_resolver.h"
30 #include "ecmascript/module/module_tools.h"
41 …ing> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, in GetExportedNames() argument
45 // 1. Let module be this Source Text Module Record. in GetExportedNames()
[all …]
Djs_shared_module_manager.cpp15 #include "ecmascript/module/js_shared_module_manager.h"
18 #include "ecmascript/module/module_path_helper.h"
53 JSHandle<JSTaggedValue> module(thread, entry.value()); in GetSModuleUnsafe() local
54 return JSHandle<SourceTextModule>::Cast(module); in GetSModuleUnsafe()
73 JSHandle<JSTaggedValue> module = JSHandle<JSTaggedValue>::Cast(moduleRecord); in TryInsertInSModuleManager() local
74 return AddResolveImportedSModule(recordName, module.GetTaggedValue()); in TryInsertInSModuleManager()
78 JSThread *thread, const CString &recordName, JSTaggedValue module) in AddToResolvedModulesAndCreateSharedModuleMutex() argument
80 // Add to normal module resolvedModules_ in AddToResolvedModulesAndCreateSharedModuleMutex()
81 thread->GetModuleManager()->AddResolveImportedModule(recordName, module); in AddToResolvedModulesAndCreateSharedModuleMutex()
88 JSThread *thread, const JSHandle<SourceTextModule> &module) in TransferFromLocalToSharedModuleMapAndGetInsertedSModule() argument
[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-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 …]
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 …]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
Dbuiltins.h27 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);
/arkcompiler/runtime_core/libabckit/include/cpp/headers/core/
Dmodule.h28 * @brief Module
30 class Module : public ViewInResource<AbckitCoreModule *, const File *> {
46 /// @brief abckit::DefaultHash<Module>
47 friend class abckit::DefaultHash<Module>;
50 /// @brief arkts::Module
51 friend class arkts::Module;
55 using CoreViewT = Module;
59 * @brief Construct a new Module object
62Module(const Module &other) = default; // CC-OFF(G.CLS.07): design decision, detail: base_concept…
67 * @return Module&
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/bind_ops/
Dmodule_bind_native_functions_test.cpp90 ani_module module {}; in TEST_F() local
91 ASSERT_EQ(env_->FindModule(MODULE_NAME, &module), ANI_OK); in TEST_F()
92 ASSERT_NE(module, nullptr); in TEST_F()
98 ASSERT_EQ(env_->Module_BindNativeFunctions(module, functions.data(), functions.size()), ANI_OK); in TEST_F()
106 ani_module module {}; in TEST_F() local
107 ASSERT_EQ(env_->FindModule(MODULE_NAME, &module), ANI_OK); in TEST_F()
108 ASSERT_NE(module, nullptr); in TEST_F()
114 ASSERT_EQ(env_->Module_BindNativeFunctions(module, functions.data(), functions.size()), ANI_OK); in TEST_F()
115 …ASSERT_EQ(env_->Module_BindNativeFunctions(module, functions.data(), functions.size()), ANI_ALREAD… in TEST_F()
132 ani_module module {}; in TEST_F() local
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule163.ets.json24 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
34 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
44 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
54 …"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)…
74 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
84 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
104 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
114 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
/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';

12345678910>>...77