Home
last modified time | relevance | path

Searched refs:CjsModule (Results 1 – 19 of 19) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/require/tests/
Djs_cjs_module_cache_test.cpp65 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0()
68 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0()
72 JSHandle<CjsModule> moduleTested = JSHandle<CjsModule>(thread, in HWTEST_F_L0()
91 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0()
92 JSHandle<CjsModule> moduleWithNewExp = factory->NewCjsModule(); in HWTEST_F_L0()
96 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0()
97 CjsModule::InitializeModule(thread, moduleWithNewExp, fileName, dirName); in HWTEST_F_L0()
104 JSHandle<CjsModule> moduleTested = JSHandle<CjsModule>(thread, in HWTEST_F_L0()
Djs_cjs_module_test.cpp68 JSHandle<CjsModule> module1 = factory->NewCjsModule(); in HWTEST_F_L0()
69 JSHandle<CjsModule> module2 = factory->NewCjsModule(); in HWTEST_F_L0()
75 CjsModule::InitializeModule(thread, module1, fileName1, dirName); in HWTEST_F_L0()
76 CjsModule::InitializeModule(thread, module2, fileName2, dirName); in HWTEST_F_L0()
89 JSHandle<JSTaggedValue> test1 = CjsModule::SearchFromModuleCache(thread, fileName1); in HWTEST_F_L0()
93 JSHandle<JSTaggedValue> test2 = CjsModule::SearchFromModuleCache(thread, fileName3); in HWTEST_F_L0()
109 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0()
113 CjsModule::InitializeModule(thread, module, fileName, dirName); in HWTEST_F_L0()
118 CjsModule::PutIntoCache(thread, module, fileName); in HWTEST_F_L0()
119 JSHandle<JSTaggedValue> test = CjsModule::SearchFromModuleCache(thread, fileName); in HWTEST_F_L0()
Djs_cjs_manager_test.cpp64 JSHandle<CjsModule> module = factory->NewCjsModule(); in HWTEST_F_L0()
92 JSHandle<CjsModule> module1 = factory->NewCjsModule(); in HWTEST_F_L0()
100 JSHandle<CjsModule> module2 = factory->NewCjsModule(); in HWTEST_F_L0()
102 CjsModule::InitializeModule(thread, module2, fileName, dirName); in HWTEST_F_L0()
109 JSHandle<JSTaggedValue> test = CjsModule::SearchFromModuleCache(thread, fileName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_cjs_module.cpp30 BUILTINS_API_TRACE(thread, CjsModule, CjsModuleConstructor); in CjsModuleConstructor()
41 BUILTINS_API_TRACE(thread, CjsModule, Compiler); in Compiler()
50 BUILTINS_API_TRACE(thread, CjsModule, Load); in Load()
59 BUILTINS_API_TRACE(thread, CjsModule, ResolveFilename); in ResolveFilename()
83 BUILTINS_API_TRACE(thread, CjsModule, Require); in Require()
92 BUILTINS_API_TRACE(thread, CjsModule, GetExportsForCircularRequire); in GetExportsForCircularRequire()
101 BUILTINS_API_TRACE(thread, CjsModule, UpdateChildren); in UpdateChildren()
Dbuiltins_cjs_require.cpp45 result = CjsModule::Load(thread, requestName); in CjsRequireConstructor()
Dbuiltins.cpp3798 factory_->NewEcmaHClass(CjsModule::SIZE, JSType::JS_CJS_MODULE, cjsModulePrototypeValue); in InitializeCjsModule()
/arkcompiler/ets_runtime/ecmascript/require/
Djs_cjs_module.h26 class CjsModule final : public JSObject {
28 CAST_CHECK(CjsModule, IsCjsModule);
45 static void InitializeModule(JSThread *thread, JSHandle<CjsModule> &module,
50 …static void PutIntoCache(JSThread *thread, JSHandle<CjsModule> &module, JSHandle<JSTaggedValue> &f…
54 …JSTaggedValue Require(JSThread *thread, JSHandle<EcmaString> &request, JSHandle<CjsModule> &parent,
Djs_cjs_module.cpp33 void CjsModule::InitializeModule(JSThread *thread, JSHandle<CjsModule> &module, in InitializeModule()
49 JSHandle<JSTaggedValue> CjsModule::SearchFromModuleCache(JSThread *thread, JSHandle<JSTaggedValue> … in SearchFromModuleCache()
62 JSHandle<CjsModule> cachedModule = JSHandle<CjsModule>(thread, in SearchFromModuleCache()
75 void CjsModule::PutIntoCache(JSThread *thread, JSHandle<CjsModule> &module, JSHandle<JSTaggedValue>… in PutIntoCache()
94 JSHandle<JSTaggedValue> CjsModule::Load(JSThread *thread, JSHandle<EcmaString> &request) in Load()
129 JSHandle<CjsModule> module = factory->NewCjsModule(); in Load()
166 void CjsModule::RequireExecution(JSThread *thread, CString mergedFilename, CString requestEntryPoin… in RequireExecution()
177 JSTaggedValue CjsModule::Require(JSThread *thread, JSHandle<EcmaString> &request, in Require()
178 [[maybe_unused]] JSHandle<CjsModule> &parent, in Require()
Djs_require_manager.h28 JSHandle<CjsModule> moduleHdl;
33 CJSInfo(JSHandle<CjsModule> &module, in CJSInfo()
Djs_require_manager.cpp30 JSHandle<CjsModule> module = cjsInfo.moduleHdl; in InitializeCommonJS()
41 CjsModule::InitializeModule(thread, module, filename, dirname); in InitializeCommonJS()
64 JSHandle<CjsModule> module = cjsInfo.moduleHdl; in CollectExecutedExp()
/arkcompiler/ets_runtime/ecmascript/
Druntime_call_id.h304 V(CjsModule, CjsModuleConstructor) \
305 V(CjsModule, Compiler) \
306 V(CjsModule, Load) \
307 V(CjsModule, ResolveFilename) \
308 V(CjsModule, Require) \
309 V(CjsModule, GetExportsForCircularRequire) \
310 V(CjsModule, UpdateChildren) \
Dobject_factory.h145 class CjsModule; variable
611 JSHandle<CjsModule> NewCjsModule();
Dobject_factory.cpp1314 CjsModule::Cast(*obj)->SetId(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1315 CjsModule::Cast(*obj)->SetExports(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1316 CjsModule::Cast(*obj)->SetPath(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1317 CjsModule::Cast(*obj)->SetFilename(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1318 CjsModule::Cast(*obj)->SetStatus(CjsModuleStatus::UNLOAD); in InitializeJSObject()
2507 JSHandle<CjsModule> ObjectFactory::NewCjsModule() in NewCjsModule()
2512 JSHandle<CjsModule> cjsModule = JSHandle<CjsModule>(NewJSObjectByConstructor(moduleObj)); in NewCjsModule()
Decma_context.cpp313 JSHandle<CjsModule> module = factory_->NewCjsModule(); in CJSExecution()
Ddump.cpp1112 CjsModule::Cast(obj)->Dump(os); in DumpObject()
3567 void CjsModule::Dump(std::ostream &os) const in Dump()
3957 CjsModule::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5422 void CjsModule::DumpForSnapshot(std::vector<std::pair<CString, JSTaggedValue>> &vec) const in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp130 return CjsModule::SearchFromModuleCache(thread, cjsModuleName).GetTaggedValue(); in GetModuleValueOutterInternal()
156 JSHandle<JSTaggedValue> cjsExports = CjsModule::SearchFromModuleCache(thread, cjsModuleName); in GetCJSModuleValue()
279 return CjsModule::SearchFromModuleCache(thread, cjsModuleName).GetTaggedValue(); in GetModuleValueOutterInternal()
605 return CjsModule::SearchFromModuleCache(thread, cjsModuleName).GetTaggedValue(); in GetModuleNamespaceInternal()
Djs_module_source_text.cpp280 JSHandle<JSTaggedValue> cjsExports = CjsModule::SearchFromModuleCache(thread, cjsModuleName); in InstantiateCJS()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h611 CjsModule::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp1315 CHECK_DUMP_FIELDS(JSObject::SIZE, CjsModule::SIZE, 5U); in HWTEST_F_L0()
1316 JSHandle<CjsModule> cjsModule = factory->NewCjsModule(); in HWTEST_F_L0()