Home
last modified time | relevance | path

Searched refs:cjsInfo (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/require/
Djs_require_manager.cpp25 void RequireManager::InitializeCommonJS(JSThread *thread, CJSInfo cjsInfo) in InitializeCommonJS() argument
30 JSHandle<CjsModule> module = cjsInfo.moduleHdl; in InitializeCommonJS()
31 JSHandle<JSTaggedValue> require = cjsInfo.requireHdl; in InitializeCommonJS()
32 JSHandle<CjsExports> exports = cjsInfo.exportsHdl; in InitializeCommonJS()
33 JSHandle<JSTaggedValue> filename = cjsInfo.filenameHdl; in InitializeCommonJS()
34 JSHandle<JSTaggedValue> dirname = cjsInfo.dirnameHdl; in InitializeCommonJS()
60 void RequireManager::CollectExecutedExp(JSThread *thread, CJSInfo cjsInfo) in CollectExecutedExp() argument
64 JSHandle<CjsModule> module = cjsInfo.moduleHdl; in CollectExecutedExp()
65 JSHandle<JSTaggedValue> filename = cjsInfo.filenameHdl; in CollectExecutedExp()
Djs_require_manager.h42 static void InitializeCommonJS(JSThread *thread, CJSInfo cjsInfo);
44 static void CollectExecutedExp(JSThread *thread, CJSInfo cjsInfo);
/arkcompiler/ets_runtime/ecmascript/require/tests/
Djs_cjs_manager_test.cpp69 CJSInfo cjsInfo(module, require, exports, fileName, dirName); in HWTEST_F_L0() local
70 RequireManager::InitializeCommonJS(thread, cjsInfo); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Decma_context.cpp220 CJSInfo* cjsInfo) in InvokeEcmaAotEntrypoint() argument
223 return JSFunction::InvokeOptimizedEntrypoint(thread_, mainFunc, thisArg, entryPoint, cjsInfo); in InvokeEcmaAotEntrypoint()
326 CJSInfo cjsInfo(module, require, exports, filename, dirname); in CJSExecution() local
327 RequireManager::InitializeCommonJS(thread_, cjsInfo); in CJSExecution()
330 InvokeEcmaAotEntrypoint(func, thisArg, jsPandaFile, entryPoint, &cjsInfo); in CJSExecution()
343 info->SetCallArg(cjsInfo.exportsHdl.GetTaggedValue(), in CJSExecution()
344 cjsInfo.requireHdl.GetTaggedValue(), in CJSExecution()
345 cjsInfo.moduleHdl.GetTaggedValue(), in CJSExecution()
346 cjsInfo.filenameHdl.GetTaggedValue(), in CJSExecution()
347 cjsInfo.dirnameHdl.GetTaggedValue()); in CJSExecution()
[all …]
Djs_function.cpp321 JSHandle<JSTaggedValue> &thisArg, std::string_view entryPoint, CJSInfo* cjsInfo) in InvokeOptimizedEntrypoint() argument
343 args = JSFunction::GetArgsData(true, thisArg, mainFunc, cjsInfo); in InvokeOptimizedEntrypoint()
346 args = JSFunction::GetArgsData(false, thisArg, mainFunc, cjsInfo); in InvokeOptimizedEntrypoint()
361 JSHandle<JSFunction> mainFunc, CJSInfo* cjsInfo) in GetArgsData() argument
381 if (cjsInfo != nullptr) { in GetArgsData()
382 args[mandatoryNum++] = cjsInfo->exportsHdl.GetTaggedValue().GetRawData(); in GetArgsData()
383 args[mandatoryNum++] = cjsInfo->requireHdl.GetTaggedValue().GetRawData(); in GetArgsData()
384 args[mandatoryNum++] = cjsInfo->moduleHdl.GetTaggedValue().GetRawData(); in GetArgsData()
385 args[mandatoryNum++] = cjsInfo->filenameHdl.GetTaggedValue().GetRawData(); in GetArgsData()
386 args[mandatoryNum] = cjsInfo->dirnameHdl.GetTaggedValue().GetRawData(); in GetArgsData()
Djs_function.h99 JSHandle<JSTaggedValue> &thisArg, std::string_view entryPoint, CJSInfo* cjsInfo);
241 JSHandle<JSFunction> mainFunc, CJSInfo* cjsInfo);
Decma_context.h402 CJSInfo *cjsInfo = nullptr);