/arkcompiler/ets_runtime/ecmascript/require/tests/ |
D | js_cjs_module_cache_test.cpp | 65 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()
|
D | js_cjs_module_test.cpp | 68 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()
|
D | js_cjs_manager_test.cpp | 64 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/ |
D | builtins_cjs_module.cpp | 30 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()
|
D | builtins_cjs_require.cpp | 45 result = CjsModule::Load(thread, requestName); in CjsRequireConstructor()
|
D | builtins.cpp | 3798 factory_->NewEcmaHClass(CjsModule::SIZE, JSType::JS_CJS_MODULE, cjsModulePrototypeValue); in InitializeCjsModule()
|
/arkcompiler/ets_runtime/ecmascript/require/ |
D | js_cjs_module.h | 26 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,
|
D | js_cjs_module.cpp | 33 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()
|
D | js_require_manager.h | 28 JSHandle<CjsModule> moduleHdl; 33 CJSInfo(JSHandle<CjsModule> &module, in CJSInfo()
|
D | js_require_manager.cpp | 30 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/ |
D | runtime_call_id.h | 304 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) \
|
D | object_factory.h | 145 class CjsModule; variable 611 JSHandle<CjsModule> NewCjsModule();
|
D | object_factory.cpp | 1314 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()
|
D | ecma_context.cpp | 313 JSHandle<CjsModule> module = factory_->NewCjsModule(); in CJSExecution()
|
D | dump.cpp | 1112 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/ |
D | js_module_manager.cpp | 130 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()
|
D | js_module_source_text.cpp | 280 JSHandle<JSTaggedValue> cjsExports = CjsModule::SearchFromModuleCache(thread, cjsModuleName); in InstantiateCJS()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | object_xray.h | 611 CjsModule::Cast(object)->VisitRangeSlot(visitor); in VisitObjectBody()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | dump_test.cpp | 1315 CHECK_DUMP_FIELDS(JSObject::SIZE, CjsModule::SIZE, 5U); in HWTEST_F_L0() 1316 JSHandle<CjsModule> cjsModule = factory->NewCjsModule(); in HWTEST_F_L0()
|