Home
last modified time | relevance | path

Searched full:entrypoint (Results 1 – 25 of 168) sorted by relevance

1234567

/arkcompiler/runtime_core/static_core/runtime/entrypoints/
Dentrypoints_gen.S.erb18 ENTRYPOINT ThrowNativeExceptionBridge, ThrowNativeExceptionEntrypoint, 0, VOID
20 % Compiler::entrypoints.each do |entrypoint|
21 % next if !entrypoint.has_bridge? || entrypoint.external?
22 % if entrypoint.bridge == 'slow_path'
23 …YPOINT_SLOW_PATH <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, <%= entrypoint.signa…
24 % elsif entrypoint.bridge == 'odd_saved'
25 …YPOINT_ODD_SAVED <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, <%= entrypoint.signa…
26 % elsif entrypoint.bridge == 'odd_saved1'
27 ENTRYPOINT_ODD_SAVED <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, 1, <%= entrypoint
28 % elsif entrypoint.bridge == 'odd_saved2'
[all …]
Dentrypoints.yaml17 # - no_return: entrypoint doesn't jump back to the caller.
18 # - external: don't generate entrypoint and bridge declarations, initialize table's element by n…
19 # - irtoc: entrypoint is generated by irtoc tool
20 # - intrinsic: this is call of intrinsic wrapped in entrypoint bridge
21 # * signature: signature of the entrypoint, the first element is the return value, the rest are ar…
22 # * entrypoint: entrypoint function name.
26 entrypoint: DeoptimizeEntrypoint
27 bridge: entrypoint
34 entrypoint: AbstractMethodErrorEntrypoint
35 bridge: entrypoint
[all …]
Dentrypoints_gen.h.erb44 % Compiler::entrypoints.each do |entrypoint|
45 % next if entrypoint.external?
47 % if entrypoint.has_bridge? && !entrypoints_map.include?(entrypoint.bridge_name)
49 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.bridge_name %>(<%= entrypoint.si…
50 % entrypoints_map.add(entrypoint.bridge_name)
52 % if !entrypoint.properties.include?("intrinsic") && !entrypoints_map.include?(entrypoint.entrypo…
53 % if entrypoint.properties.include?("irtoc")
56 static constexpr <%= entrypoint.signature[0] %> (*<%= entrypoint.entrypoint %>)(<%= entrypoint.sign…
59 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.entrypoint %>(<%= entrypoint.sig…
63 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.entrypoint %>(<%= entrypoint.sig…
[all …]
Dentrypoints_compiler.inl.erb17 % Compiler::entrypoints.each_with_index do |entrypoint, index|
18 <%= entrypoint.enum_name %> = <%= index %>,
29 % Compiler::entrypoints.each do |entrypoint|
30 "<%= entrypoint.name %>",
40 % Compiler::entrypoints.each do |entrypoint|
41 case EntrypointId::<%= entrypoint.enum_name %>:
42 return <%= entrypoint.has_property? 'no_return' %>;
54 % Compiler::entrypoints.each do |entrypoint|
55 case EntrypointId::<%= entrypoint.enum_name %>:
56 return <%= entrypoint.signature.length - 1 %>;
[all …]
Dentrypoints.rb18 class Entrypoint < OpenStruct class
21 if self.entrypoint.nil? && !self.external?
22 raise "Entrypoint description must contains 'entrypoint' field: #{dscr.marshal_dump}"
24 …abort "ERROR: 'bridge' field must be specified for #{self.entrypoint}" unless dscr['bridge'] # !se…
65 @entrypoints ||= @data['entrypoints'].map {|x| Entrypoint.new x }
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
Dets_entrypoints.yaml17 # - no_return: entrypoint doesn't jump back to the caller.
18 # - external: don't generate entrypoint and bridge declarations, initialize table's element by n…
19 # - irtoc: entrypoint is generated by irtoc tool
20 # - intrinsic: this is call of intrinsic wrapped in entrypoint bridge
21 # * signature: signature of the entrypoint, the first element is the return value, the rest are ar…
22 # * entrypoint: entrypoint function name.
25 entrypoint: CreateLaunchStaticCoroutineEntrypoint
26 bridge: entrypoint
35 entrypoint: CreateLaunchVirtualCoroutineEntrypoint
36 bridge: entrypoint
[all …]
Dets_vm.cpp381 bool PandaEtsVM::CheckEntrypointSignature(Method *entrypoint) in CheckEntrypointSignature() argument
383 ASSERT(entrypoint != nullptr); in CheckEntrypointSignature()
385 if (entrypoint->GetNumArgs() == 0) { in CheckEntrypointSignature()
389 if (entrypoint->GetNumArgs() > 1) { in CheckEntrypointSignature()
393 auto *pf = entrypoint->GetPandaFile(); in CheckEntrypointSignature()
395 panda_file::MethodDataAccessor mda(*pf, entrypoint->GetFileId()); in CheckEntrypointSignature()
456 Expected<int, Runtime::Error> PandaEtsVM::InvokeEntrypointImpl(Method *entrypoint, const std::vecto… in InvokeEntrypointImpl() argument
458 …ASSERT(Runtime::GetCurrent()->GetLanguageContext(*entrypoint).GetLanguage() == panda_file::SourceL… in InvokeEntrypointImpl()
464 …if (!classLinker_->InitializeClass(coroutine, EtsClass::FromRuntimeClass(entrypoint->GetClass())))… in InvokeEntrypointImpl()
465 … LOG(ERROR, RUNTIME) << "Cannot initialize class '" << entrypoint->GetClass()->GetName() << "'"; in InvokeEntrypointImpl()
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/templates/
Dentrypoints_gen.inl.erb20 % Compiler::entrypoints.each do |entrypoint|
21 case ark::compiler::RuntimeInterface::EntrypointId::<%= entrypoint.enum_name %>:
22 return ark::llvmbackend::BridgeType::<%= entrypoint.bridge %>;
39 % Compiler::entrypoints.each do |entrypoint|
40 case ark::compiler::RuntimeInterface::EntrypointId::<%= entrypoint.enum_name %>:
41 … return llvm::FunctionType::get(<%= llvm_type_getter(entrypoint.signature[0], 'GC_SPACE') %>,
42 …{<%= entrypoint.signature[1..-1].select {|t| t != '...' }.map { |t| llvm_type_getter(t, 'GC_SPACE'…
43 <%= entrypoint.variadic? %>);
46 …ASSERT_DO(false, (std::cerr << "Cannot get entrypoint signature by EntrypointId = " << static_cast…
Dentrypoints_llvm_ark_interface_gen.inl.erb21 % Compiler::entrypoints.each do |entrypoint|
22 case ark::compiler::RuntimeInterface::EntrypointId::<%= entrypoint.enum_name %>:
23 return "<%= entrypoint.llvm_internal_name %>";
26 …ASSERT_DO(false, (std::cerr << "Cannot get entrypoint name by EntrypointId = " << static_cast<int>…
32 % Compiler::entrypoints.each_with_index do |entrypoint, index|
33 case ark::compiler::RuntimeInterface::EntrypointId::<%= entrypoint.enum_name %>:
37 …ASSERT_DO(false, (std::cerr << "Cannot get entrypoint name by EntrypointId = " << static_cast<int>…
Dentrypoints.rb58 class Entrypoint class
76 @dscr.entrypoint.nil? ? "#{name}Entrypoint" : @dscr.entrypoint
80 "#{name}Entrypoint"
105 @entrypoints ||= @data['entrypoints'].map {|x| Entrypoint.new x }
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp19 * This function use recordName, requestName to get baseFileName and entryPoint.
39 …CString entryPoint = TranslateExpressionInputWithEts(thread, jsPandaFile, baseFileName, requestNam… in ConcatFileNameWithMerge() local
40 if (entryPoint.empty()) { in ConcatFileNameWithMerge()
41 … THROW_MODULE_NOT_FOUND_ERROR_WITH_RETURN_VALUE(thread, requestName, recordName, entryPoint); in ConcatFileNameWithMerge()
43 return entryPoint; in ConcatFileNameWithMerge()
47 CString entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in ConcatFileNameWithMerge() local
48 if (entryPoint.empty()) { in ConcatFileNameWithMerge()
49 … THROW_MODULE_NOT_FOUND_ERROR_WITH_RETURN_VALUE(thread, requestName, recordName, entryPoint); in ConcatFileNameWithMerge()
51 return entryPoint; in ConcatFileNameWithMerge()
66 …CString entryPoint = ConcatImportFileNormalizedOhmurlWithRecordName(thread, jsPandaFile, baseFileN… in ConcatMergeFileNameToNormalized() local
[all …]
Dnapi_module_loader.cpp61 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile, in LoadModuleNameSpaceWithPath() local
72 JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, abcFilePath, entryPoint); in LoadModuleNameSpaceWithPath()
75 bool hasRecord = jsPandaFile->CheckAndGetRecordInfo(entryPoint, &recordInfo); in LoadModuleNameSpaceWithPath()
77 …LOG_FULL(ERROR) << "cannot find record '" << entryPoint <<"' in basefileName " << abcFilePath << "… in LoadModuleNameSpaceWithPath()
79 … CString msg = "cannot find record '" + entryPoint + "' in basefileName " + abcFilePath + "," + in LoadModuleNameSpaceWithPath()
84 …if (!moduleManager->IsLocalModuleLoaded(entryPoint) || moduleManager->IsLocalModuleInstantiated(en… in LoadModuleNameSpaceWithPath()
85 …if (!JSPandaFileExecutor::ExecuteFromAbcFile(thread, abcFilePath, entryPoint.c_str(), false, true)… in LoadModuleNameSpaceWithPath()
86 CString msg = "Cannot execute request from napi load module : " + entryPoint + in LoadModuleNameSpaceWithPath()
91 JSHandle<SourceTextModule> moduleRecord = moduleManager->HostGetImportedModule(entryPoint); in LoadModuleNameSpaceWithPath()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dliteral_data_extractor.h37 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "");
41 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
46 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "");
48 EntityId id, JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
53 EntityId id, JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
60 const CString &entryPoint = "");
65 const CString &entryPoint = "",
78 const CString &entryPoint = "", bool isLoadedAOT = false, uint32_t entryIndex = 0,
85 const CString &entryPoint = "");
Djs_pandafile_executor.h33 std::string_view entryPoint);
35 … [[maybe_unused]] std::string_view entryPoint);
40 std::string_view entryPoint,
44 … std::string_view entryPoint, bool needUpdate = false,
47 … std::string_view entryPoint, const CString &filename = "",
55 … std::string_view entryPoint, bool executeFromJob = false);
65 std::string_view entryPoint,
74 const CString &entryPoint);
Djs_pandafile_executor.cpp29 [[maybe_unused]] std::string_view entryPoint) in ParseAbcEntryPoint() argument
35 return {filename, entryPoint.data()}; in ParseAbcEntryPoint()
110 const CString &filename, std::string_view entryPoint, bool needUpdate, bool executeFromJob) in ExecuteFromAbsolutePathAbcFile() argument
115 CString entry = entryPoint.data(); in ExecuteFromAbsolutePathAbcFile()
122 std::string_view entryPoint, bool needUpdate, bool executeFromJob) in ExecuteFromAbcFile() argument
131 std::tie(name, entry) = ParseAbcEntryPoint(thread, filename, entryPoint); in ExecuteFromAbcFile()
134 entry = entryPoint.data(); in ExecuteFromAbcFile()
142 …const void *buffer, size_t size, std::string_view entryPoint, const CString &filename, bool needUp… in ExecuteFromBuffer() argument
150 …JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, normalName, entryPoint, buffer, size, n… in ExecuteFromBuffer()
162 CString entry = entryPoint.data(); in ExecuteFromBuffer()
[all …]
Djs_pandafile_manager.h34 …<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view entryPoint);
36 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint,
39 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint,
44 … std::string_view entryPoint, uint8_t *buffer, size_t size,
112 std::string_view entryPoint);
118 std::string_view entryPoint);
Dliteral_data_extractor.cpp33 const CString &entryPoint) in ExtractObjectDatas() argument
47 … &methodId, &kind, &constpool, &entryPoint](const LiteralValue &value, const LiteralTag &tag) { in ExtractObjectDatas()
101 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
131 …SPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint) in GetDatasIgnoreTypeForClass() argument
140 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreTypeForClass()
145 const CString &entryPoint) in GetDatasIgnoreType() argument
148 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreType()
152 …SPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &entryPoint) in EnumerateLiteralVals() argument
161 … index, [literals, &pos, factory, thread, jsPandaFile, &methodId, &kind, &constpool, &entryPoint] in EnumerateLiteralVals()
211 … DefineFunctionTemplate(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in EnumerateLiteralVals()
[all …]
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dcoroutine.h70 Method *entrypoint; member
84 : completionEvent(event), entrypoint(entry), arguments(std::move(args)) in ManagedEntrypointInfo()
95 NativeEntrypointFunc entrypoint; member
102 …* @param arguments a parameter which will be passed to the entrypoint (usually some object pointer)
104 …explicit NativeEntrypointInfo(NativeEntrypointFunc entry, void *data) : entrypoint(entry), param(d… in NativeEntrypointInfo()
131 * finish execution of their entrypoint method.
184 * @brief Indicate that coroutine entrypoint execution is finished. Propagates the coroutine
200 /// Get coroutine's managed entrypoint method.
204 return std::get<ManagedEntrypointData>(entrypoint_).entrypoint; in GetManagedEntrypoint()
207 /// Get coroutine's managed entrypoint args if any.
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/
Dasm_printer.cpp36 void AssemblyPrinter<aarch32::Aarch32Encoder>::MakeCall(const void *entryPoint) in MakeCall() argument
38 *str_ << "blx " << std::hex << entryPoint << "\n"; in MakeCall()
58 void AssemblyPrinter<aarch64::Aarch64Encoder>::MakeCall(const void *entryPoint) in MakeCall() argument
60 *str_ << "bl " << std::hex << entryPoint << "\n"; in MakeCall()
80 void AssemblyPrinter<amd64::Amd64Encoder>::MakeCall(const void *entryPoint) in MakeCall() argument
82 *str_ << "callq " << std::hex << entryPoint << "@plt\n"; in MakeCall()
/arkcompiler/runtime_core/panda/
Dpanda.cpp92 << " [OPTIONS] [file] [entrypoint] -- [arguments]" << std::endl; in PrintHelp()
99 … const panda::PandArg<std::string> &file, const panda::PandArg<std::string> &entrypoint, in PrepareArguments() argument
116 if (file.GetValue().empty() || entrypoint.GetValue().empty() || help.GetValue()) { in PrepareArguments()
142 panda::PandArg<std::string> &entrypoint, RuntimeOptions &runtime_options) in ExecutePandaFile() argument
156 std::string entry = entrypoint.GetValue(); in ExecutePandaFile()
201 …panda::PandArg<std::string> entrypoint("entrypoint", "", "full name of entrypoint function or meth… in Main() local
210 pa_parser.PushBackTail(&entrypoint); in Main()
214 if (!panda::PrepareArguments(&pa_parser, runtime_options, file, entrypoint, help, argc, argv)) { in Main()
246 return ExecutePandaFile(options, pa_parser, file, entrypoint, runtime_options); in Main()
/arkcompiler/runtime_core/static_core/panda/
Dpanda.cpp63 << " [OPTIONS] [file] [entrypoint] -- [arguments]" << std::endl; in PrintHelp()
70 … const ark::PandArg<std::string> &file, const ark::PandArg<std::string> &entrypoint, in PrepareArguments() argument
78 if (file.GetValue().empty() || entrypoint.GetValue().empty() || help.GetValue()) { in PrepareArguments()
109 …ark::PandArg<std::string> entrypoint("entrypoint", "", "full name of entrypoint function or method… in Main() local
118 paParser.PushBackTail(&entrypoint); in Main()
136 if (!ark::PrepareArguments(&paParser, runtimeOptions, file, entrypoint, help)) { in Main()
187 std::string entry = entrypoint.GetValue(); in Main()
/arkcompiler/runtime_core/disassembler/templates/
Dintrinsics_gen.h.erb22 % entrypoint = intrinsic.name + "EntryPoint"
24 <%= intrinsic.impl_signature.ret %> <%= entrypoint %>(<%= params.join(", ") %>) { // NOLINT
74 % entrypoint = intrinsic.name + "EntryPoint"
75 method->SetCompiledEntryPoint(reinterpret_cast<const void *>(<%= entrypoint %>));
/arkcompiler/runtime_core/static_core/runtime/
Dsignal_handler.cpp251 …auto entrypoint = reinterpret_cast<uintptr_t>((reinterpret_cast<Method *>(pmethod))->GetCompiledEn… in FindCompilerEntrypoint() local
252 if (IsInvalidPointer(entrypoint)) { in FindCompilerEntrypoint()
256 if (!InAllocatedCodeRange(entrypoint)) { in FindCompilerEntrypoint()
257 LOG(INFO, RUNTIME) << "Runtime SEGV handler: the entrypoint is not from JIT code"; in FindCompilerEntrypoint()
261 if (!compiler::CodeInfo::VerifyCompiledEntry(entrypoint)) { in FindCompilerEntrypoint()
266 return entrypoint; in FindCompilerEntrypoint()
313 uintptr_t entrypoint = FindCompilerEntrypoint(signalContext.GetFP()); in DetectSEGVFromCode() local
314 if (entrypoint == 0) { in DetectSEGVFromCode()
318 …ompiler::CodeInfo codeinfo(compiler::CodeInfo::GetCodeOriginFromEntryPoint(ToVoidPtr(entrypoint))); in DetectSEGVFromCode()
321 if ((pc < entrypoint) || (pc > entrypoint + codeSize)) { in DetectSEGVFromCode()
[all …]
/arkcompiler/runtime_core/static_core/disassembler/templates/
Dintrinsics_gen.h.erb22 % entrypoint = intrinsic.name + "EntryPoint"
24 <%= intrinsic.impl_signature.ret %> <%= entrypoint %>(<%= params.join(", ") %>) { // NOLINT
74 % entrypoint = intrinsic.name + "EntryPoint"
75 method->SetCompiledEntryPoint(reinterpret_cast<const void *>(<%= entrypoint %>));
/arkcompiler/runtime_core/static_core/runtime/core/
Dcore_vm.cpp211 bool PandaCoreVM::CheckEntrypointSignature(Method *entrypoint) in CheckEntrypointSignature() argument
213 if (entrypoint->GetNumArgs() == 0) { in CheckEntrypointSignature()
217 if (entrypoint->GetNumArgs() > 1) { in CheckEntrypointSignature()
221 auto *pf = entrypoint->GetPandaFile(); in CheckEntrypointSignature()
222 panda_file::MethodDataAccessor mda(*pf, entrypoint->GetFileId()); in CheckEntrypointSignature()
259 Expected<int, Runtime::Error> PandaCoreVM::InvokeEntrypointImpl(Method *entrypoint, in InvokeEntrypointImpl() argument
264 LanguageContext ctx = runtime->GetLanguageContext(*entrypoint); in InvokeEntrypointImpl()
269 if (!classLinker->InitializeClass(thread, entrypoint->GetClass())) { in InvokeEntrypointImpl()
270 … LOG(ERROR, RUNTIME) << "Cannot initialize class '" << entrypoint->GetClass()->GetName() << "'"; in InvokeEntrypointImpl()
275 if (entrypoint->GetNumArgs() == 1) { in InvokeEntrypointImpl()
[all …]

1234567