| /arkcompiler/runtime_core/libabckit/include/cpp/headers/arkts/ |
| D | module.h | 19 #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 …]
|
| D | module_impl.h | 19 #include "./module.h" 28 inline AbckitArktsModule *Module::TargetCast() const in TargetCast() 35 inline Module::Module(const core::Module &coreOther) : core::Module(coreOther), targetChecker_(this… in Module() function 37 inline arkts::ImportDescriptor Module::AddImportFromArktsV1ToArktsV1(Module imported, std::string_v… in AddImportFromArktsV1ToArktsV1() 50 inline arkts::ExportDescriptor Module::AddExportFromArktsV1ToArktsV1(arkts::Module exported, std::s… in AddExportFromArktsV1ToArktsV1() 63 inline Module Module::RemoveImport(arkts::ImportDescriptor desc) const in RemoveImport() 72 inline Module Module::RemoveExport(arkts::ExportDescriptor desc) const in RemoveExport() 81 inline arkts::AnnotationInterface Module::AddAnnotationInterface(std::string_view name) const in AddAnnotationInterface()
|
| /arkcompiler/runtime_core/libabckit/include/cpp/headers/js/ |
| D | module.h | 19 #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 …]
|
| D | module_impl.h | 19 #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/ |
| 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_runtime/ecmascript/module/ |
| D | js_module_deregister.cpp | 15 #include "ecmascript/module/js_module_deregister.h" 19 #include "ecmascript/module/module_path_helper.h" 20 #include "ecmascript/module/module_resolver.h" 28 LOG_FULL(FATAL) << "Lacking deregister module's name."; in FreeModuleRecord() 35 // pointer is module's name, which will be deregistered. in FreeModuleRecord() 45 JSHandle<SourceTextModule> module(thread, SourceTextModule::Cast(moduleVal.GetTaggedObject())); in FreeModuleRecord() local 46 LoadingTypes type = module->GetLoadingTypes(); in FreeModuleRecord() 47 CString recordNameStr = SourceTextModule::GetModuleName(module.GetTaggedValue()); in FreeModuleRecord() 49 LOG_FULL(INFO) << "free stable module's ModuleNameSpace" << recordNameStr; in FreeModuleRecord() 54 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/module_message_helper.h" 25 #include "ecmascript/module/module_path_helper.h" 26 #include "ecmascript/module/module_tools.h" 28 #include "ecmascript/module/module_resolver.h" 38 …ing> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, in GetExportedNames() argument 42 // 1. Let module be this Source Text Module Record. in GetExportedNames() 43 // 2. If exportStarSet contains module, then in GetExportedNames() 44 if (exportStarSet->GetIdx(module.GetTaggedValue()) != TaggedArray::MAX_ARRAY_INDEX) { in GetExportedNames() [all …]
|
| D | module_tools.cpp | 16 #include "ecmascript/module/module_tools.h" 21 #include "ecmascript/module/js_module_manager.h" 22 #include "ecmascript/module/js_shared_module.h" 23 #include "ecmascript/module/module_logger.h" 24 #include "ecmascript/module/module_manager_helper.h" 25 #include "ecmascript/module/module_path_helper.h" 32 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetModuleValueFromIndexBindingForLog() argument 36 ModuleManagerHelper::GetResolvedRecordIndexBindingModule(thread, module, binding); in GetModuleValueFromIndexBindingForLog() 39 moduleLogger->InsertModuleLoadInfo(module, resolvedModule, index); in GetModuleValueFromIndexBindingForLog() 45 … JSThread *thread, JSHandle<SourceTextModule> module, JSTaggedValue resolvedBinding, int32_t index) in GetModuleValueFromRecordBindingForLog() argument [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 | js_shared_module_manager.cpp | 15 #include "ecmascript/module/js_shared_module_manager.h" 18 #include "ecmascript/module/module_manager_helper.h" 19 #include "ecmascript/module/module_path_helper.h" 83 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetSendableModuleValueImpl() local 84 JSTaggedValue moduleEnvironment = module->GetEnvironment(); in GetSendableModuleValueImpl() 91 return ModuleManagerHelper::GetModuleValueFromIndexBinding(thread, module, resolvedBinding); in GetSendableModuleValueImpl() 97 … return ModuleManagerHelper::GetModuleValueFromRecordBinding(thread, module, resolvedBinding); in GetSendableModuleValueImpl() 117 JSHandle<SourceTextModule> module(thread, currentModule.GetTaggedObject()); in GetLazySendableModuleValueImpl() local 118 JSTaggedValue moduleEnvironment = module->GetEnvironment(); in GetLazySendableModuleValueImpl() 125 … return ModuleManagerHelper::GetLazyModuleValueFromIndexBinding(thread, module, resolvedBinding); in GetLazySendableModuleValueImpl() [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,
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | shared_module.ts.json | 24 …"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/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-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-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 …]
|
| /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/runtime_core/libabckit/include/cpp/headers/core/ |
| D | module.h | 28 * @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 62 …Module(const Module &other) = default; // CC-OFF(G.CLS.07): design decision, detail: base_concept… 67 * @return Module& [all …]
|
| D | import_descriptor_impl.h | 21 #include "./module.h" 38 inline Module ImportDescriptor::GetImportedModule() const in GetImportedModule() 40 AbckitCoreModule *module = GetApiConfig()->cIapi_->importDescriptorGetImportedModule(GetView()); in GetImportedModule() local 42 return core::Module(module, conf_, GetResource()); in GetImportedModule() 45 inline ImportDescriptor::ImportDescriptor(AbckitCoreImportDescriptor *module, const ApiConfig *conf… in ImportDescriptor() argument 46 : ViewInResource(module), conf_(conf) in ImportDescriptor() 51 inline Module ImportDescriptor::GetImportingModule() const in GetImportingModule() 53 … AbckitCoreModule *module = GetApiConfig()->cIapi_->importDescriptorGetImportingModule(GetView()); in GetImportingModule() local 55 return core::Module(module, conf_, GetResource()); in GetImportingModule()
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/rules/ |
| D | rule163.ts.json | 24 …"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/ |
| 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" {}
|