Home
last modified time | relevance | path

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

12345678910>>...12

/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp16 #include "ecmascript/module/js_module_source_text.h"
25 #include "ecmascript/module/js_module_manager.h"
26 #include "ecmascript/module/js_module_namespace.h"
32 …ing> SourceTextModule::GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module, in GetExportedNames() argument
36 // 1. Let module be this Source Text Module Record. in GetExportedNames()
37 // 2. If exportStarSet contains module, then in GetExportedNames()
38 if (exportStarSet->GetIdx(module.GetTaggedValue()) != TaggedArray::MAX_ARRAY_INDEX) { in GetExportedNames()
43 // 3. Append module to exportStarSet. in GetExportedNames()
46 newExportStarSet->Set(thread, len, module.GetTaggedValue()); in GetExportedNames()
48 JSTaggedValue entryValue = module->GetLocalExportEntries(); in GetExportedNames()
[all …]
Djs_module_record.cpp16 #include "ecmascript/module/js_module_record.h"
17 #include "ecmascript/module/js_module_source_text.h"
20 int32_t ModuleRecord::Instantiate(JSThread *thread, const JSHandle<JSTaggedValue> &module) in Instantiate() argument
22 if (module->IsSourceTextModule()) { in Instantiate()
23 return SourceTextModule::Instantiate(thread, module); in Instantiate()
28 int32_t ModuleRecord::Evaluate(JSThread *thread, const JSHandle<JSTaggedValue> &module) in Evaluate() argument
30 if (module->IsSourceTextModule()) { in Evaluate()
31 JSHandle<SourceTextModule> moduleRecord = JSHandle<SourceTextModule>::Cast(module); in Evaluate()
37 JSTaggedValue ModuleRecord::GetNamespace(JSTaggedValue module) in GetNamespace() argument
39 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"
45 … const JSHandle<SourceTextModule> &module,
48 …JSThread *thread, const JSHandle<SourceTextModule> &module, const JSHandle<JSTaggedValue> &moduleR…
51 …c CVector<std::string> GetExportedNames(JSThread *thread, const JSHandle<SourceTextModule> &module,
55 …c JSHandle<JSTaggedValue> ResolveExport(JSThread *thread, const JSHandle<SourceTextModule> &module,
58 …ndle<JSTaggedValue> ResolveExportObject(JSThread *thread, const JSHandle<SourceTextModule> &module,
61 // 15.2.1.16.4.1 InnerModuleInstantiation ( module, stack, index )
65 // 15.2.1.16.4.2 ModuleDeclarationEnvironmentSetup ( module )
66 …void ModuleDeclarationEnvironmentSetup(JSThread *thread, const JSHandle<SourceTextModule> &module);
[all …]
Djs_module_namespace.cpp16 #include "ecmascript/module/js_module_namespace.h"
20 #include "ecmascript/module/js_module_record.h"
21 #include "ecmascript/module/js_module_source_text.h"
26 … const JSHandle<JSTaggedValue> &module, in ModuleNamespaceCreate() argument
30 // 1. Assert: module is a Module Record. in ModuleNamespaceCreate()
31 ASSERT(module->IsModuleRecord()); in ModuleNamespaceCreate()
32 // 2. Assert: module.[[Namespace]] is undefined. in ModuleNamespaceCreate()
33 JSHandle<ModuleRecord> moduleRecord = JSHandle<ModuleRecord>::Cast(module); in ModuleNamespaceCreate()
40 // 6. Set M.[[Module]] to module. in ModuleNamespaceCreate()
41 mNp->SetModule(thread, module); in ModuleNamespaceCreate()
[all …]
Djs_module_record.h28 static int Instantiate(JSThread *thread, const JSHandle<JSTaggedValue> &module);
30 static int Evaluate(JSThread *thread, const JSHandle<JSTaggedValue> &module);
32 static JSTaggedValue GetNamespace(JSTaggedValue module);
33 static void SetNamespace(JSThread *thread, JSTaggedValue module, JSTaggedValue value);
Djs_module_manager.cpp15 #include "ecmascript/module/js_module_manager.h"
29 #include "ecmascript/module/js_module_source_text.h"
89 SourceTextModule *module = SourceTextModule::Cast(currentModule.GetTaggedObject()); in GetModuleName() local
90 JSTaggedValue recordName = module->GetEcmaModuleRecordName(); in GetModuleName()
92 return module->GetEcmaModuleFilename(); in GetModuleName()
121 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal() local
123 ModuleTypes moduleType = module->GetTypes(); in GetModuleValueOutterInternal()
127 if (module->GetTypes() == ModuleTypes::CJS_MODULE) { in GetModuleValueOutterInternal()
135 SourceTextModule *module = SourceTextModule::Cast(resolvedModule.GetTaggedObject()); in GetModuleValueOutterInternal() local
136 if (module->GetTypes() == ModuleTypes::CJS_MODULE) { in GetModuleValueOutterInternal()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp26 #include "ecmascript/module/js_module_manager.h"
27 #include "ecmascript/module/js_module_source_text.h"
64 * Feature: Module
68 * CaseDescription: Add two import item and check module import entries size
73 JSHandle<SourceTextModule> module = objectFactory->NewSourceTextModule(); in HWTEST_F_L0() local
75 SourceTextModule::AddImportEntry(thread, module, importEntry1, 0, 2); in HWTEST_F_L0()
77 SourceTextModule::AddImportEntry(thread, module, importEntry2, 1, 2); in HWTEST_F_L0()
78 JSHandle<TaggedArray> importEntries(thread, module->GetImportEntries()); in HWTEST_F_L0()
83 * Feature: Module
87 * CaseDescription: Add two local export item and check module local export entries size
[all …]
/arkcompiler/ets_frontend/es2panda/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" {
/arkcompiler/ets_runtime/ecmascript/require/
Djs_require_manager.cpp30 JSHandle<CjsModule> module = cjsInfo.moduleHdl; in InitializeCommonJS() local
36 // Set module.exports ---> exports in InitializeCommonJS()
38 SlowRuntimeStub::StObjByName(thread, module.GetTaggedValue(), exportsKey.GetTaggedValue(), in InitializeCommonJS()
40 // initialize module in InitializeCommonJS()
41 CjsModule::InitializeModule(thread, module, filename, dirname); in InitializeCommonJS()
43 // Set this.module ---> this.require.parent in InitializeCommonJS()
46 module.GetTaggedValue()); in InitializeCommonJS()
47 // cache ----> Set Module._cache in InitializeCommonJS()
55 JSHandle<JSTaggedValue>::Cast(filename), JSHandle<JSTaggedValue>(module)); in InitializeCommonJS()
64 JSHandle<CjsModule> module = cjsInfo.moduleHdl; in CollectExecutedExp() local
[all …]
Djs_cjs_module.cpp33 void CjsModule::InitializeModule(JSThread *thread, JSHandle<CjsModule> &module, in InitializeModule() argument
39 SlowRuntimeStub::StObjByName(thread, module.GetTaggedValue(), dirKey.GetTaggedValue(), in InitializeModule()
42 SlowRuntimeStub::StObjByName(thread, module.GetTaggedValue(), filenameKey.GetTaggedValue(), in InitializeModule()
44 module->SetFilename(thread, filename.GetTaggedValue()); in InitializeModule()
45 module->SetPath(thread, dirname.GetTaggedValue()); in InitializeModule()
75 void CjsModule::PutIntoCache(JSThread *thread, JSHandle<CjsModule> &module, JSHandle<JSTaggedValue>… in PutIntoCache() argument
87 JSHandle<JSTaggedValue> moduleHandle = JSHandle<JSTaggedValue>::Cast(module); in PutIntoCache()
121 // Search from Module.cache in Load()
128 // module = new Module(), which belongs to required JSPandaFile. in Load()
129 JSHandle<CjsModule> module = factory->NewCjsModule(); in Load() local
[all …]
/arkcompiler/ets_runtime/
DREADME.md23 │ ├─ ic # Inline cache module
27 │ ├─ jspandafile # abc file management module
28 │ ├─ mem # Memory management module
29 │ ├─ module # ECMAScript module
30 │ ├─ napi # C++ API module
32 │ ├─ regexp # Regular expression engine module
33 │ ├─ snapshot # Snapshot module
38 │ ├─ ts_type # TS type management module
39 └─ test # Module test cases
/arkcompiler/ets_runtime/ecmascript/module/tests/module_test/
Dmodule_test_module_test_C.js16 import {a, b, module} from './module_test_module_test_B.js'
19 var c = new obj.Test(obj.module);
21 if (module == obj.module) {
22 print(module);
/arkcompiler/ets_runtime/ecmascript/require/tests/
Djs_cjs_module_cache_test.cpp54 …* @tc.desc: Call "PutIfAbsent" function, check whether the module is loaded successfully into the …
64 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0() local
67 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0()
70 JSHandle<JSTaggedValue>(module)); in HWTEST_F_L0()
82 * @tc.desc: Call "ResetModule" function,check whether the same-name module is replaced.
91 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0() local
96 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0()
101 JSHandle<JSTaggedValue>(module)); in HWTEST_F_L0()
Djs_cjs_module_test.cpp55 * @tc.desc: Call "SearchFromModuleCache" function: return the corresponding module.exports,
56 * if Module(store in GlobalEnv) contains the module which named "xxx". Else, return Hole.
100 * @tc.desc: Call "PutIntoCache" function, put module into Module(store in GlobalEnv).
109 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0() local
113 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0()
116 SlowRuntimeStub::StObjByName(thread, module.GetTaggedValue(), exportsName.GetTaggedValue(), in HWTEST_F_L0()
118 CjsModule::PutIntoCache(thread, module, fileName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/moduletest/moduleUseCjs/
DsomeArgsCjs.js18 * @tc.desc:test module CJS
23 module.exports.json = "moduleJson";
24 module.exports.fun = function foo1 () {
27 Object.defineProperty(module.exports, "con", {
DCjs.js18 * @tc.desc:test module CJS
22 var cjs = "module use cjsModule"
23 module.exports = cjs
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/quickfix/multi_file/
Dmerge.txt2 module.js;module;esm;module.js;entry
/arkcompiler/ets_runtime/test/quickfix/
Dbase.txt2 module.js;module;esm;module.js;entry
/arkcompiler/runtime_core/templates/events/
Devents.h.erb18 #ifndef PANDA_<%= Common::module.name.upcase %>_EVENTS_GEN_H_
19 #define PANDA_<%= Common::module.name.upcase %>_EVENTS_GEN_H_
23 namespace <%= Common::module.namespace %> {
60 } // namespace <%= Common::module.namespace %>
62 #endif // PANDA_<%= Common::module.name.upcase %>_EVENTS_GEN_H_
/arkcompiler/runtime_core/platforms/windows/libpandabase/
Dlibrary_loader.cpp23 HMODULE module = LoadLibrary(filename.data()); in Load() local
24 void *handle = reinterpret_cast<void *>(module); in Load()
34 HMODULE module = reinterpret_cast<HMODULE>(handle.GetNativeHandle()); in ResolveSymbol() local
35 void *p = reinterpret_cast<void *>(GetProcAddress(module, name.data())); in ResolveSymbol()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dstub_compiler.cpp36 explicit StubPassData(Stub *stub, LLVMModule *module, CompilerLog *log) in StubPassData() argument
37 : PassData(nullptr, nullptr, nullptr, log, "stubs"), module_(module), stub_(stub) {} in StubPassData()
78 void CreateCodeGen(LLVMModule *module, bool enableLog) in CreateCodeGen() argument
80 llvmImpl_ = std::make_unique<LLVMIRGeneratorImpl>(module, enableLog); in CreateCodeGen()
96 void StubCompiler::RunPipeline(LLVMModule *module) const in RunPipeline()
98 auto callSigns = module->GetCSigns(); in RunPipeline()
101 auto cconfig = module->GetCompilationConfig(); in RunPipeline()
118 StubPassData data(&stub, module, log); in RunPipeline()
/arkcompiler/ets_frontend/es2panda/scripts/
Dgenerate_js_bytecode.py37 parser.add_argument("--module", action='store_true',
38 help='whether is module')
64 if input_arguments.module:
66 cmd.insert(src_index, '--module')
/arkcompiler/toolchain/inspector/
Dlibrary_loader.cpp34 HMODULE module = LoadLibrary(libraryName.data()); in Load() local
35 void* handle = reinterpret_cast<void*>(module); in Load()
47 HMODULE module = reinterpret_cast<HMODULE>(handle); in ResolveSymbol() local
48 void* addr = reinterpret_cast<void*>(GetProcAddress(module, symbol.data())); in ResolveSymbol()
/arkcompiler/ets_frontend/ts2panda/scripts/
DdiagnosticMessages.json54 "'{0}' modifier cannot appear on a module or namespace element.": {
166 "Cannot use imports, exports, or module augmentations when '--module' is 'none'.": {
278 "An export assignment must be at the top level of a file or module declaration.": {
282 "An import declaration can only be used in a namespace or module.": {
286 "An export declaration can only be used in a module.": {
326 "Identifier expected. '{0}' is a reserved word at the top-level of a module.": {
350 "A default export can only be used in an ECMAScript-style module.": {
366 … "Dynamic imports can only accept a module specifier, optional assertion is not supported yet.": {
374 "Module '{0}' has no exported member '{1}'.": {
378 "Module '{0}' has already exported a member named '{1}'.": {
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
DBUILD.gn33 extra_args = [ "--module" ]
43 "quickfix/multi_file/base/module.js",
45 "quickfix/multi_file/patch/module.js",
93 extra_args += [ "--module" ]
106 extra_args += [ "--module" ]

12345678910>>...12