Home
last modified time | relevance | path

Searched refs:entryPoint (Results 1 – 25 of 38) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp24 CString entryPoint; in ConcatFileNameWithMerge() local
27 entryPoint = ParsePrefixBundle(thread, jsPandaFile, baseFileName, requestName, recordName); in ConcatFileNameWithMerge()
30 entryPoint = requestName.substr(PREFIX_PACKAGE_LEN); in ConcatFileNameWithMerge()
35 entryPoint = MakeNewRecord(jsPandaFile, baseFileName, recordName, requestName); in ConcatFileNameWithMerge()
39 entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in ConcatFileNameWithMerge()
41 if (entryPoint.empty() && thread->GetEcmaVM()->EnableReportModuleResolvingFailure()) { in ConcatFileNameWithMerge()
48 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, entryPoint); in ConcatFileNameWithMerge()
51 "'. EntryPoint : '" << entryPoint << "'."; in ConcatFileNameWithMerge()
52 return entryPoint; in ConcatFileNameWithMerge()
153 CString entryPoint = moduleRequestName; in ParsePrefixBundle() local
[all …]
Dmodule_path_helper.h148 CString entryPoint = packageEntryPoint; in ConfirmLoadingIndexOrNot() local
149 if (jsPandaFile->HasRecord(entryPoint)) { in ConfirmLoadingIndexOrNot()
150 return entryPoint; in ConfirmLoadingIndexOrNot()
153 entryPoint += PACKAGE_ENTRY_FILE; in ConfirmLoadingIndexOrNot()
154 if (jsPandaFile->HasRecord(entryPoint)) { in ConfirmLoadingIndexOrNot()
155 return entryPoint; in ConfirmLoadingIndexOrNot()
Dmodule_data_extractor.cpp151 …oduleDataExtractor::JsonParse(JSThread *thread, const JSPandaFile *jsPandaFile, CString entryPoint) in JsonParse() argument
159 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entryPoint, recordInfo); in JsonParse()
161 CString msg = "cannot find record '" + entryPoint + "', please check the request path."; in JsonParse()
Dmodule_data_extractor.h44 …atic JSTaggedValue JsonParse(JSThread *thread, const JSPandaFile *jsPandaFile, CString entryPoint);
Djs_dynamic_import.cpp39 CString entryPoint = PathHelper::GetStrippedModuleName(requestPath); in ExecuteNativeModule() local
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dliteral_data_extractor.h37 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "");
40 JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
45 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "");
47 JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
51 const CString &entryPoint = "");
56 const CString &entryPoint = "",
67 const CString &entryPoint = "");
Djs_pandafile_executor.h29 … std::string_view entryPoint, bool needUpdate = false,
32 … std::string_view entryPoint, const CString &filename = "",
39 … std::string_view entryPoint, bool excuteFromJob = false);
43 std::string_view entryPoint,
Dliteral_data_extractor.cpp37 const CString &entryPoint) in ExtractObjectDatas() argument
51 … &methodId, &kind, &constpool, &entryPoint](const LiteralValue &value, const LiteralTag &tag) { in ExtractObjectDatas()
90 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
119 …SPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint) in GetDatasIgnoreTypeForClass() argument
128 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreTypeForClass()
133 const CString &entryPoint) in GetDatasIgnoreType() argument
136 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreType()
140 …SPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint) in EnumerateLiteralVals() argument
149 … index, [literals, &pos, factory, thread, jsPandaFile, &methodId, &kind, &constpool, &entryPoint] in EnumerateLiteralVals()
184 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in EnumerateLiteralVals()
[all …]
Djs_pandafile_manager.h33 …<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view entryPoint);
35 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint,
38 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint,
43 … std::string_view entryPoint, uint8_t *buffer, size_t size,
90 std::string_view entryPoint);
Djs_pandafile_executor.cpp33 std::string_view entryPoint, bool needUpdate, bool excuteFromJob) in ExecuteFromFile() argument
42 entry = entryPoint.data(); in ExecuteFromFile()
60 entry = entryPoint.data(); in ExecuteFromFile()
114 …const void *buffer, size_t size, std::string_view entryPoint, const CString &filename, bool needUp… in ExecuteFromBuffer() argument
119 …JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, normalName, entryPoint, buffer, size, n… in ExecuteFromBuffer()
121 …sg = "Load file with filename '" + normalName + "' failed, recordName '" + entryPoint.data() + "'"; in ExecuteFromBuffer()
127 CString entry = entryPoint.data(); in ExecuteFromBuffer()
219 … std::string_view entryPoint, bool excuteFromJob) in Execute() argument
227 …Expected<JSTaggedValue, bool> result = context->InvokeEcmaEntrypoint(jsPandaFile, entryPoint, excu… in Execute()
248 size_t size, std::string_view entryPoint, const CString &filename, bool needUpdate) in ExecuteFromBufferSecure() argument
[all …]
Djs_pandafile_manager.cpp44 std::string_view entryPoint, bool needUpdate) in LoadJSPandaFile() argument
105 …red_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), filename, entryPoint); in LoadJSPandaFile()
116 std::string_view entryPoint, const void *buffer, size_t size, bool needUpdate) in LoadJSPandaFile() argument
150 …:shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPoint); in LoadJSPandaFile()
160 std::string_view entryPoint, uint8_t *buffer, size_t size, bool needUpdate) in LoadJSPandaFileSecure() argument
194 …:shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPoint); in LoadJSPandaFileSecure()
204 std::string_view entryPoint) in GenerateProgram() argument
211 return PandaFileTranslator::GenerateProgram(vm, jsPandaFile, entryPoint); in GenerateProgram()
451 … const CString &desc, std::string_view entryPoint) in GenerateJSPandaFile() argument
457 CString methodName = entryPoint.data(); in GenerateJSPandaFile()
[all …]
Dpanda_file_translator.h39 std::string_view entryPoint);
51 …ParseFuncAndLiteralConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile, const CString &entryPoint,
Djs_pandafile.cpp244 CString entryPoint = GetNpmEntries(recordName); in GetEntryPoint() local
245 if (HasRecord(entryPoint)) { in GetEntryPoint()
246 return entryPoint; in GetEntryPoint()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp308 …CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, mod… in HWTEST_F_L0() local
310 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0()
340 …CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pf.get(), baseFilename, mod… in HWTEST_F_L0() local
342 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0()
349 entryPoint = ModulePathHelper::ConcatFileNameWithMerge( in HWTEST_F_L0()
351 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0()
375 CString entryPoint = in HWTEST_F_L0() local
378 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0()
389entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pf2.get(), baseFilename, moduleReco… in HWTEST_F_L0()
392 EXPECT_EQ(result, entryPoint); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_job.cpp153 CString entryPoint = JSPandaFile::ENTRY_MAIN_FUNCTION; in DynamicImportJob() local
177 entryPoint = in DynamicImportJob()
181 moduleName.Update(factory->NewFromUtf8(entryPoint).GetTaggedValue()); in DynamicImportJob()
184 JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, fileNameStr, entryPoint); in DynamicImportJob()
186 …ring msg = "Load file with filename '" + fileNameStr + "' failed, recordName '" + entryPoint + "'"; in DynamicImportJob()
193 …if (!JSPandaFileExecutor::ExecuteFromFile(thread, fileNameStr.c_str(), entryPoint.c_str(), false, … in DynamicImportJob()
194 CString msg = "Cannot execute request dynamic-imported module : " + entryPoint; in DynamicImportJob()
205 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entryPoint, recordInfo); in DynamicImportJob()
207 …LOG_FULL(ERROR) << "cannot find record '" << entryPoint <<"' in basefileName " << fileNameStr << "… in DynamicImportJob()
208 CString msg = "cannot find record '" + entryPoint + "', please check the request path."; in DynamicImportJob()
/arkcompiler/toolchain/tooling/test/
Ddebugger_entry_test.cpp60 auto [pandaFile, entryPoint] = GetTestEntryPoint(testName); in HWTEST_P_L0()
61 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
Ddebugger_cinterp_test.cpp60 auto [pandaFile, entryPoint] = GetTestEntryPoint(testName); in HWTEST_P_L0()
61 auto res = JSNApi::Execute(instance, pandaFile.c_str(), entryPoint.c_str()); in HWTEST_P_L0()
/arkcompiler/toolchain/tooling/backend/
Djs_pt_hooks.cpp70 void JSPtHooks::LoadModule(std::string_view pandaFileName, std::string_view entryPoint) in LoadModule() argument
77 if (debugger_->NotifyScriptParsed(scriptId++, pandaFileName.data(), entryPoint)) { in LoadModule()
Djs_pt_hooks.h35 void LoadModule(std::string_view pandaFileName, std::string_view entryPoint) override;
/arkcompiler/ets_runtime/ecmascript/
Decma_context.cpp219 … const JSPandaFile *jsPandaFile, std::string_view entryPoint, in InvokeEcmaAotEntrypoint() argument
222 aotFileManager_->SetAOTMainFuncEntry(mainFunc, jsPandaFile, entryPoint); in InvokeEcmaAotEntrypoint()
223 return JSFunction::InvokeOptimizedEntrypoint(thread_, mainFunc, thisArg, entryPoint, cjsInfo); in InvokeEcmaAotEntrypoint()
242 … std::string_view entryPoint, bool excuteFromJob) in InvokeEcmaEntrypoint() argument
245 …rogram> program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, entryPoint); in InvokeEcmaEntrypoint()
252 jsPandaFile->GetJSPandaFileDesc(), entryPoint); in InvokeEcmaEntrypoint()
257 CString entry = entryPoint.data(); in InvokeEcmaEntrypoint()
283 CJSExecution(func, global, jsPandaFile, entryPoint); in InvokeEcmaEntrypoint()
287 result = InvokeEcmaAotEntrypoint(func, global, jsPandaFile, entryPoint); in InvokeEcmaEntrypoint()
310 const JSPandaFile *jsPandaFile, std::string_view entryPoint) in CJSExecution() argument
[all …]
Decma_context.h399 const JSPandaFile *jsPandaFile, std::string_view entryPoint);
401 … const JSPandaFile *jsPandaFile, std::string_view entryPoint,
403 …aggedValue, bool> InvokeEcmaEntrypoint(const JSPandaFile *jsPandaFile, std::string_view entryPoint,
/arkcompiler/ets_runtime/ecmascript/debugger/
Dnotification_manager.h61 void LoadModuleEvent(std::string_view name, std::string_view entryPoint) const in LoadModuleEvent() argument
64 listener_->LoadModule(name, entryPoint); in LoadModuleEvent()
Djs_debugger.h123 void LoadModule(std::string_view filename, std::string_view entryPoint) override in LoadModule() argument
128 hooks_->LoadModule(filename, entryPoint); in LoadModule()
Djs_debugger_interface.h71 virtual void LoadModule(std::string_view pandaFileName, std::string_view entryPoint) = 0;
/arkcompiler/toolchain/tooling/test/utils/
Dtest_hooks.h62 …void LoadModule(std::string_view panda_file_name, [[maybe_unused]] std::string_view entryPoint) ov… in LoadModule() argument

12