Home
last modified time | relevance | path

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

12345678

/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.cpp382 bool PandaEtsVM::CheckEntrypointSignature(Method *entrypoint) in CheckEntrypointSignature() argument
384 ASSERT(entrypoint != nullptr); in CheckEntrypointSignature()
386 if (entrypoint->GetNumArgs() == 0) { in CheckEntrypointSignature()
390 if (entrypoint->GetNumArgs() > 1) { in CheckEntrypointSignature()
394 auto *pf = entrypoint->GetPandaFile(); in CheckEntrypointSignature()
396 panda_file::MethodDataAccessor mda(*pf, entrypoint->GetFileId()); in CheckEntrypointSignature()
457 Expected<int, Runtime::Error> PandaEtsVM::InvokeEntrypointImpl(Method *entrypoint, const std::vecto… in InvokeEntrypointImpl() argument
459 …ASSERT(Runtime::GetCurrent()->GetLanguageContext(*entrypoint).GetLanguage() == panda_file::SourceL… in InvokeEntrypointImpl()
465 …if (!classLinker_->InitializeClass(coroutine, EtsClass::FromRuntimeClass(entrypoint->GetClass())))… in InvokeEntrypointImpl()
466 … LOG(ERROR, RUNTIME) << "Cannot initialize class '" << entrypoint->GetClass()->GetName() << "'"; in InvokeEntrypointImpl()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Dmodule_path_helper.cpp21 * This function use recordName, requestName to get baseFileName and entryPoint.
47 …CString entryPoint = TranslateExpressionInputWithEts(thread, jsPandaFile, baseFileName, requestNam… 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()
55 CString entryPoint = ParseThirdPartyPackage(jsPandaFile, recordName, requestName); in ConcatFileNameWithMerge() local
56 if (entryPoint.empty()) { in ConcatFileNameWithMerge()
57 THROW_MODULE_NOT_FOUND_ERROR_WITH_RETURN_VALUE(thread, requestName, recordName, entryPoint); in ConcatFileNameWithMerge()
59 return entryPoint; in ConcatFileNameWithMerge()
73 …CString entryPoint = ConcatImportFileNormalizedOhmurlWithRecordName(thread, jsPandaFile, baseFileN… in ConcatMergeFileNameToNormalized() local
[all …]
Dnapi_module_loader.cpp109 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile, in LoadModuleNameSpaceWithPath() local
112 return LoadModuleNameSpaceFromFile(thread, entryPoint, abcFilePath); in LoadModuleNameSpaceWithPath()
116 JSThread *thread, const CString &entryPoint, const CString &abcFilePath) in LoadModuleNameSpaceFromFile() argument
119 …JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, abcFilePath, entryPoint, false, Execute… in LoadModuleNameSpaceFromFile()
124 JSRecordInfo *recordInfo = jsPandaFile->CheckAndGetRecordInfo(entryPoint); in LoadModuleNameSpaceFromFile()
126 …LOG_FULL(ERROR) << "cannot find record '" << entryPoint <<"' in basefileName " << abcFilePath << "… in LoadModuleNameSpaceFromFile()
128 … CString msg = "cannot find record '" + entryPoint + "' in basefileName " + abcFilePath + "," + in LoadModuleNameSpaceFromFile()
136 thread, entryPoint, abcFilePath); in LoadModuleNameSpaceFromFile()
139 thread, entryPoint, abcFilePath); in LoadModuleNameSpaceFromFile()
142 …le<JSTaggedValue> NapiModuleLoader::GetModuleNameSpace(JSThread *thread, const CString &entryPoint, in GetModuleNameSpace() argument
[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/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.cpp78 …const CString &filename, std::string_view entryPoint, bool needUpdate, const ExecuteTypes &execute… in ExecuteFromAbsolutePathAbcFile() argument
83 CString entry = entryPoint.data(); in ExecuteFromAbsolutePathAbcFile()
90 std::string_view entryPoint, bool needUpdate, const ExecuteTypes &executeType) in ExecuteFromAbcFile() argument
99 std::tie(name, entry) = ParseAbcEntryPoint(thread, filename, entryPoint); in ExecuteFromAbcFile()
102 entry = entryPoint.data(); in ExecuteFromAbcFile()
110 …const void *buffer, size_t size, std::string_view entryPoint, const CString &filename, bool needUp… in ExecuteFromBuffer() argument
118 …JSPandaFileManager::GetInstance()->LoadJSPandaFile(thread, normalName, entryPoint, buffer, size, n… in ExecuteFromBuffer()
130 CString entry = entryPoint.data(); in ExecuteFromBuffer()
215 … std::string_view entryPoint, const ExecuteTypes &executeType) in Execute() argument
218 … ModuleTraceScope moduleTraceScope(thread, "JSPandaFileExecutor::Execute:" + CString(entryPoint)); in Execute()
[all …]
Djs_pandafile_executor.h33 std::string_view entryPoint);
38 std::string_view entryPoint,
43 … std::string_view entryPoint, bool needUpdate = false,
46 … std::string_view entryPoint, const CString &filename = "",
55 std::string_view entryPoint,
66 std::string_view entryPoint,
75 const CString &entryPoint);
Djs_pandafile_manager.h34 …<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view entryPoint);
37 … std::string_view entryPoint, bool needUpdate = false,
40 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint,
45 … std::string_view entryPoint, uint8_t *buffer, size_t size,
113 std::string_view entryPoint);
119 std::string_view entryPoint);
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dcoroutine.h69 Method *entrypoint; member
83 : completionEvent(event), entrypoint(entry), arguments(std::move(args)) in ManagedEntrypointInfo()
94 NativeEntrypointFunc entrypoint; member
101 …* @param arguments a parameter which will be passed to the entrypoint (usually some object pointer)
103 …explicit NativeEntrypointInfo(NativeEntrypointFunc entry, void *data) : entrypoint(entry), param(d… in NativeEntrypointInfo()
130 * finish execution of their entrypoint method.
183 * @brief Indicate that coroutine entrypoint execution is finished. Propagates the coroutine
199 /// Get coroutine's managed entrypoint method.
203 return std::get<ManagedEntrypointData>(entrypoint_).entrypoint; in GetManagedEntrypoint()
206 /// 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/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()
129 … ark::PandArg<std::string> &file, ark::PandArg<std::string> &entrypoint) in GetPandArgParser() argument
136 paParser.PushBackTail(&entrypoint); in GetPandArgParser()
175 …ark::PandArg<std::string> entrypoint("entrypoint", "", "full name of entrypoint function or method… in Main() local
177 ark::PandArgParser paParser = GetPandArgParser(help, options, file, entrypoint); in Main()
198 if (!ark::PrepareArguments(&paParser, runtimeOptions, file, entrypoint, help)) { in Main()
226 …int ret = ExecutePandaFile(runtime, file.GetValue(), entrypoint.GetValue(), paParser.GetRemainder(… in Main()
/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/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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/
Dcodegen_intrinsics_ets.cpp125 RuntimeInterface::EntrypointId entrypoint) in GenerateSbAppendCall() argument
132 cg->CallFastPath(inst, entrypoint, args.Dst(), {}, args.Builder(), args.Value(), klass); in GenerateSbAppendCall()
135 cg->CallFastPath(inst, entrypoint, args.Dst(), {}, args.Builder(), args.Value(), klass); in GenerateSbAppendCall()
162 auto entrypoint = EntrypointId::STRING_BUILDER_APPEND_CHAR_COMPRESSED; in CreateStringBuilderAppendChar() local
164 GenerateSbAppendCall(this, inst, args, entrypoint); in CreateStringBuilderAppendChar()
175 auto entrypoint = RuntimeInterface::EntrypointId::STRING_BUILDER_APPEND_NULL_STRING; in EncodeSbAppendNullString() local
176 cg->CallRuntime(inst, entrypoint, dst, {}, builder); in EncodeSbAppendNullString()
331 …auto entrypoint = GetStringBuilderAppendStringsEntrypointId(2U, GetGraph()->GetRuntime()->GetPostT… in CreateStringBuilderAppendStrings() local
332 CallFastPath(inst, entrypoint, dst, {}, builder, str0, str1); in CreateStringBuilderAppendStrings()
338 …auto entrypoint = GetStringBuilderAppendStringsEntrypointId(3U, GetGraph()->GetRuntime()->GetPostT… in CreateStringBuilderAppendStrings() local
[all …]

12345678