/arkcompiler/ets_runtime/ecmascript/module/ |
D | module_path_helper.cpp | 24 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 …]
|
D | module_path_helper.h | 148 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()
|
D | module_data_extractor.cpp | 151 …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()
|
D | module_data_extractor.h | 44 …atic JSTaggedValue JsonParse(JSThread *thread, const JSPandaFile *jsPandaFile, CString entryPoint);
|
D | js_dynamic_import.cpp | 39 CString entryPoint = PathHelper::GetStrippedModuleName(requestPath); in ExecuteNativeModule() local
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | literal_data_extractor.h | 37 … 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 = "");
|
D | js_pandafile_executor.h | 29 … 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,
|
D | literal_data_extractor.cpp | 37 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 …]
|
D | js_pandafile_manager.h | 33 …<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);
|
D | js_pandafile_executor.cpp | 33 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 …]
|
D | js_pandafile_manager.cpp | 44 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 …]
|
D | panda_file_translator.h | 39 std::string_view entryPoint); 51 …ParseFuncAndLiteralConstPool(EcmaVM *vm, const JSPandaFile *jsPandaFile, const CString &entryPoint,
|
D | js_pandafile.cpp | 244 CString entryPoint = GetNpmEntries(recordName); in GetEntryPoint() local 245 if (HasRecord(entryPoint)) { in GetEntryPoint() 246 return entryPoint; in GetEntryPoint()
|
/arkcompiler/ets_runtime/ecmascript/module/tests/ |
D | ecma_module_test.cpp | 308 …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() 389 …entryPoint = 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/ |
D | builtins_promise_job.cpp | 153 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/ |
D | debugger_entry_test.cpp | 60 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()
|
D | debugger_cinterp_test.cpp | 60 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/ |
D | js_pt_hooks.cpp | 70 void JSPtHooks::LoadModule(std::string_view pandaFileName, std::string_view entryPoint) in LoadModule() argument 77 if (debugger_->NotifyScriptParsed(scriptId++, pandaFileName.data(), entryPoint)) { in LoadModule()
|
D | js_pt_hooks.h | 35 void LoadModule(std::string_view pandaFileName, std::string_view entryPoint) override;
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_context.cpp | 219 … 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 …]
|
D | ecma_context.h | 399 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/ |
D | notification_manager.h | 61 void LoadModuleEvent(std::string_view name, std::string_view entryPoint) const in LoadModuleEvent() argument 64 listener_->LoadModule(name, entryPoint); in LoadModuleEvent()
|
D | js_debugger.h | 123 void LoadModule(std::string_view filename, std::string_view entryPoint) override in LoadModule() argument 128 hooks_->LoadModule(filename, entryPoint); in LoadModule()
|
D | js_debugger_interface.h | 71 virtual void LoadModule(std::string_view pandaFileName, std::string_view entryPoint) = 0;
|
/arkcompiler/toolchain/tooling/test/utils/ |
D | test_hooks.h | 62 …void LoadModule(std::string_view panda_file_name, [[maybe_unused]] std::string_view entryPoint) ov… in LoadModule() argument
|