| /arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
| D | entrypoints_gen.S.erb | 18 % Compiler::entrypoints.each do |entrypoint| 19 % next if !entrypoint.has_bridge? || entrypoint.external? 20 % if entrypoint.bridge == 'slow_path' 21 …YPOINT_SLOW_PATH <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, <%= entrypoint.signa… 22 % elsif entrypoint.bridge == 'odd_saved' 23 …YPOINT_ODD_SAVED <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, <%= entrypoint.signa… 24 % elsif entrypoint.bridge == 'odd_saved1' 25 ENTRYPOINT_ODD_SAVED <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, 1, <%= entrypoint… 26 % elsif entrypoint.bridge == 'odd_saved2' 27 ENTRYPOINT_ODD_SAVED <%= entrypoint.bridge_name %>, <%= entrypoint.entrypoint %>, 2, <%= entrypoint… [all …]
|
| D | entrypoints.yaml | 17 # - 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 …]
|
| D | entrypoints_gen.h.erb | 48 % Compiler::entrypoints.each do |entrypoint| 49 % next if entrypoint.external? 51 % if entrypoint.has_bridge? && !entrypoints_map.include?(entrypoint.bridge_name) 53 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.bridge_name %>(<%= entrypoint.si… 54 % entrypoints_map.add(entrypoint.bridge_name) 56 % if !entrypoint.properties.include?("intrinsic") && !entrypoints_map.include?(entrypoint.entrypo… 57 % if entrypoint.properties.include?("irtoc") 60 static constexpr <%= entrypoint.signature[0] %> (*<%= entrypoint.entrypoint %>)(<%= entrypoint.sign… 63 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.entrypoint %>(<%= entrypoint.sig… 67 extern <%= prefix %> <%= entrypoint.signature[0] %> <%= entrypoint.entrypoint %>(<%= entrypoint.sig… [all …]
|
| D | entrypoints_compiler.inl.erb | 17 % 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 …]
|
| D | entrypoints.rb | 18 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/ |
| D | ets_entrypoints.yaml | 17 # - 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 …]
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/templates/ |
| D | entrypoints_gen.inl.erb | 20 % 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…
|
| D | entrypoints_llvm_ark_interface_gen.inl.erb | 21 % 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>…
|
| D | entrypoints.rb | 58 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/ |
| D | module_path_helper.cpp | 21 * 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 …]
|
| D | napi_module_loader.cpp | 131 CString entryPoint = ModulePathHelper::ConcatFileNameWithMerge(thread, pandaFile, in LoadModuleNameSpaceWithPath() local 134 return LoadModuleNameSpaceFromFile(thread, entryPoint, abcFilePath); in LoadModuleNameSpaceWithPath() 139 JSThread *thread, const CString &entryPoint, const CString &abcFilePath) in LoadModuleNameSpaceFromFile() argument 142 thread, abcFilePath, entryPoint, false, ExecuteTypes::NAPI); in LoadModuleNameSpaceFromFile() 147 JSRecordInfo *recordInfo = jsPandaFile->CheckAndGetRecordInfo(entryPoint); in LoadModuleNameSpaceFromFile() 149 …LOG_FULL(ERROR) << "cannot find record '" << entryPoint <<"' in basefileName " << abcFilePath << "… in LoadModuleNameSpaceFromFile() 151 … CString msg = "cannot find record '" + entryPoint + "' in basefileName " + abcFilePath + "," + in LoadModuleNameSpaceFromFile() 159 thread, entryPoint, abcFilePath); in LoadModuleNameSpaceFromFile() 162 thread, entryPoint, abcFilePath); in LoadModuleNameSpaceFromFile() 165 JSThread *thread, const CString &entryPoint, const CString &abcFilePath); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | literal_data_extractor.h | 37 … 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 = "");
|
| D | js_pandafile_executor.cpp | 78 …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 …]
|
| D | js_pandafile_executor.h | 32 std::string_view entryPoint); 37 std::string_view entryPoint, 42 … std::string_view entryPoint, bool needUpdate = false, 45 … std::string_view entryPoint, const CString &filename = "", 54 std::string_view entryPoint, 65 std::string_view entryPoint, 75 const CString &entryPoint);
|
| D | js_pandafile_manager.h | 34 …<Program> GenerateProgram(EcmaVM *vm, const JSPandaFile *jsPandaFile, std::string_view entryPoint); 37 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint, 41 …SPandaFile> LoadJSPandaFile(JSThread *thread, const CString &filename, std::string_view entryPoint, 46 … std::string_view entryPoint, uint8_t *buffer, size_t size, 50 std::string_view entryPoint); 130 … std::string_view entryPoint, void *fileMapper = nullptr); 136 std::string_view entryPoint);
|
| D | js_pandafile_manager.cpp | 54 std::string_view entryPoint, bool needUpdate, const ExecuteTypes &executeType) in LoadJSPandaFile() argument 69 jsPandaFile = GenerateJSPandafileFromBufferCache(thread, filename, entryPoint); in LoadJSPandaFile() 129 …red_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), filename, entryPoint); in LoadJSPandaFile() 138 …const CString &filename, std::string_view entryPoint, bool needUpdate, const ExecuteTypes &execute… 140 …const CString &filename, std::string_view entryPoint, bool needUpdate, const ExecuteTypes &execute… 144 std::string_view entryPoint, const void *buffer, size_t size, bool needUpdate) in LoadJSPandaFile() argument 176 …:shared_ptr<JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPoint); in LoadJSPandaFile() 186 std::string_view entryPoint, uint8_t *buffer, size_t size, bool needUpdate, void *fileMapper) in LoadJSPandaFileSecure() argument 221 …JSPandaFile> jsPandaFile = GenerateJSPandaFile(thread, pf.release(), desc, entryPoint, fileMapper); in LoadJSPandaFileSecure() 231 … std::string_view entryPoint) in LoadInsecureJSPandaFile() argument [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/compiler/ |
| D | codegen_intrinsics_ets.cpp | 125 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 …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/ |
| D | asm_printer.cpp | 36 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/ |
| D | panda.cpp | 63 << " [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() 124 … ark::PandArg<std::string> &file, ark::PandArg<std::string> &entrypoint) in GetPandArgParser() argument 131 paParser.PushBackTail(&entrypoint); in GetPandArgParser() 170 …ark::PandArg<std::string> entrypoint("entrypoint", "", "full name of entrypoint function or method… in Main() local 172 ark::PandArgParser paParser = GetPandArgParser(help, options, file, entrypoint); in Main() 193 if (!ark::PrepareArguments(&paParser, runtimeOptions, file, entrypoint, help)) { in Main() 219 …int ret = ExecutePandaFile(runtime, file.GetValue(), entrypoint.GetValue(), paParser.GetRemainder(… in Main()
|
| /arkcompiler/runtime_core/static_core/runtime/coroutines/ |
| D | coroutine.h | 84 Method *entrypoint; member 98 : completionEvent(event), entrypoint(entry), arguments(std::move(args)) in ManagedEntrypointInfo() 109 NativeEntrypointFunc entrypoint; member 116 …* @param arguments a parameter which will be passed to the entrypoint (usually some object pointer) 118 …explicit NativeEntrypointInfo(NativeEntrypointFunc entry, void *data) : entrypoint(entry), param(d… in NativeEntrypointInfo() 147 * finish execution of their entrypoint method. 203 * @brief Indicate that coroutine entrypoint execution is finished. Propagates the coroutine 219 /// Get coroutine's managed entrypoint method. 223 return std::get<ManagedEntrypointData>(entrypoint_).entrypoint; in GetManagedEntrypoint() 226 /// Get coroutine's managed entrypoint args if any. [all …]
|
| D | coroutine_manager.h | 95 * std::nullopt (i.e. no entrypoint present) then the following rules apply: 101 …in" coroutine (the EP of the application) is the specific example of such "no entrypoint" coroutine 142 * @param entrypoint the coroutine entrypoint method 143 * @param arguments array of coroutine's entrypoint arguments 146 …virtual bool Launch(CompletionEvent *completionEvent, Method *entrypoint, PandaVector<Value> &&arg… 154 * @param entrypoint the coroutine entrypoint method 155 * @param arguments array of coroutine's entrypoint arguments 157 …virtual bool LaunchImmediately(CompletionEvent *completionEvent, Method *entrypoint, PandaVector<V… 161 * @brief The public coroutine creation and execution interface with native entrypoint. 163 * @param epFunc the native function of coroutine entrypoint [all …]
|
| /arkcompiler/runtime_core/panda/ |
| D | panda.cpp | 92 << " [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/runtime/ |
| D | signal_handler.cpp | 218 …auto entrypoint = reinterpret_cast<uintptr_t>((reinterpret_cast<Method *>(pmethod))->GetCompiledEn… in FindCompilerEntrypoint() local 219 if (IsInvalidPointer(entrypoint)) { in FindCompilerEntrypoint() 223 if (!InAllocatedCodeRange(entrypoint)) { in FindCompilerEntrypoint() 224 LOG(INFO, RUNTIME) << "Runtime SEGV handler: the entrypoint is not from JIT code"; in FindCompilerEntrypoint() 228 if (!compiler::CodeInfo::VerifyCompiledEntry(entrypoint)) { in FindCompilerEntrypoint() 233 return entrypoint; in FindCompilerEntrypoint() 261 static std::optional<NullCheckEPInfo> LookupNullCheckEntrypoint(uintptr_t pc, uintptr_t entrypoint) in LookupNullCheckEntrypoint() argument 263 …ompiler::CodeInfo codeinfo(compiler::CodeInfo::GetCodeOriginFromEntryPoint(ToVoidPtr(entrypoint))); in LookupNullCheckEntrypoint() 264 if ((pc < entrypoint) || (pc > entrypoint + codeinfo.GetCodeSize())) { in LookupNullCheckEntrypoint() 270 uintptr_t nullCheckAddr = entrypoint + icheck.GetInstNativePc(); in LookupNullCheckEntrypoint() [all …]
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | intrinsics_gen.h.erb | 22 % 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/disassembler/templates/ |
| D | intrinsics_gen.h.erb | 22 % 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 %>));
|