1 /* 2 * Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved. 3 * Copyright (c) 2025, Red Hat, Inc. All rights reserved. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5 * 6 * This code is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License version 2 only, as 8 * published by the Free Software Foundation. 9 * 10 * This code is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 * 24 */ 25 26 #ifndef CPU_AARCH64_STUBDECLARATIONS_HPP 27 #define CPU_AARCH64_STUBDECLARATIONS_HPP 28 29 #define STUBGEN_INITIAL_BLOBS_ARCH_DO(do_stub, \ 30 do_arch_blob, \ 31 do_arch_entry, \ 32 do_arch_entry_init) \ 33 do_arch_blob(initial, 10000) \ 34 35 36 #define STUBGEN_CONTINUATION_BLOBS_ARCH_DO(do_stub, \ 37 do_arch_blob, \ 38 do_arch_entry, \ 39 do_arch_entry_init) \ 40 do_arch_blob(continuation, 2000) \ 41 42 43 #define STUBGEN_COMPILER_BLOBS_ARCH_DO(do_stub, \ 44 do_arch_blob, \ 45 do_arch_entry, \ 46 do_arch_entry_init) \ 47 do_arch_blob(compiler, 70000) \ 48 do_stub(compiler, vector_iota_indices) \ 49 do_arch_entry(aarch64, compiler, vector_iota_indices, \ 50 vector_iota_indices, vector_iota_indices) \ 51 do_stub(compiler, large_array_equals) \ 52 do_arch_entry(aarch64, compiler, large_array_equals, \ 53 large_array_equals, large_array_equals) \ 54 do_stub(compiler, large_arrays_hashcode_boolean) \ 55 do_arch_entry(aarch64, compiler, large_arrays_hashcode_boolean, \ 56 large_arrays_hashcode_boolean, \ 57 large_arrays_hashcode_boolean) \ 58 do_stub(compiler, large_arrays_hashcode_byte) \ 59 do_arch_entry(aarch64, compiler, large_arrays_hashcode_byte, \ 60 large_arrays_hashcode_byte, \ 61 large_arrays_hashcode_byte) \ 62 do_stub(compiler, large_arrays_hashcode_char) \ 63 do_arch_entry(aarch64, compiler, large_arrays_hashcode_char, \ 64 large_arrays_hashcode_char, \ 65 large_arrays_hashcode_char) \ 66 do_stub(compiler, large_arrays_hashcode_short) \ 67 do_arch_entry(aarch64, compiler, large_arrays_hashcode_short, \ 68 large_arrays_hashcode_short, \ 69 large_arrays_hashcode_short) \ 70 do_stub(compiler, large_arrays_hashcode_int) \ 71 do_arch_entry(aarch64, compiler, large_arrays_hashcode_int, \ 72 large_arrays_hashcode_int, \ 73 large_arrays_hashcode_int) \ 74 do_stub(compiler, large_byte_array_inflate) \ 75 do_arch_entry(aarch64, compiler, large_byte_array_inflate, \ 76 large_byte_array_inflate, large_byte_array_inflate) \ 77 do_stub(compiler, count_positives) \ 78 do_arch_entry(aarch64, compiler, count_positives, count_positives, \ 79 count_positives) \ 80 do_stub(compiler, count_positives_long) \ 81 do_arch_entry(aarch64, compiler, count_positives_long, \ 82 count_positives_long, count_positives_long) \ 83 do_stub(compiler, compare_long_string_LL) \ 84 do_arch_entry(aarch64, compiler, compare_long_string_LL, \ 85 compare_long_string_LL, compare_long_string_LL) \ 86 do_stub(compiler, compare_long_string_UU) \ 87 do_arch_entry(aarch64, compiler, compare_long_string_UU, \ 88 compare_long_string_UU, compare_long_string_UU) \ 89 do_stub(compiler, compare_long_string_LU) \ 90 do_arch_entry(aarch64, compiler, compare_long_string_LU, \ 91 compare_long_string_LU, compare_long_string_LU) \ 92 do_stub(compiler, compare_long_string_UL) \ 93 do_arch_entry(aarch64, compiler, compare_long_string_UL, \ 94 compare_long_string_UL, compare_long_string_UL) \ 95 do_stub(compiler, string_indexof_linear_ll) \ 96 do_arch_entry(aarch64, compiler, string_indexof_linear_ll, \ 97 string_indexof_linear_ll, string_indexof_linear_ll) \ 98 do_stub(compiler, string_indexof_linear_uu) \ 99 do_arch_entry(aarch64, compiler, string_indexof_linear_uu, \ 100 string_indexof_linear_uu, string_indexof_linear_uu) \ 101 do_stub(compiler, string_indexof_linear_ul) \ 102 do_arch_entry(aarch64, compiler, string_indexof_linear_ul, \ 103 string_indexof_linear_ul, string_indexof_linear_ul) \ 104 /* this uses the entry for ghash_processBlocks */ \ 105 do_stub(compiler, ghash_processBlocks_wide) \ 106 107 108 #define STUBGEN_FINAL_BLOBS_ARCH_DO(do_stub, \ 109 do_arch_blob, \ 110 do_arch_entry, \ 111 do_arch_entry_init) \ 112 do_arch_blob(final, 20000 ZGC_ONLY(+85000)) \ 113 do_stub(final, copy_byte_f) \ 114 do_arch_entry(aarch64, final, copy_byte_f, copy_byte_f, \ 115 copy_byte_f) \ 116 do_stub(final, copy_byte_b) \ 117 do_arch_entry(aarch64, final, copy_byte_b, copy_byte_b, \ 118 copy_byte_b) \ 119 do_stub(final, copy_oop_f) \ 120 do_arch_entry(aarch64, final, copy_oop_f, copy_oop_f, copy_oop_f) \ 121 do_stub(final, copy_oop_b) \ 122 do_arch_entry(aarch64, final, copy_oop_b, copy_oop_b, copy_oop_b) \ 123 do_stub(final, copy_oop_uninit_f) \ 124 do_arch_entry(aarch64, final, copy_oop_uninit_f, copy_oop_uninit_f, \ 125 copy_oop_uninit_f) \ 126 do_stub(final, copy_oop_uninit_b) \ 127 do_arch_entry(aarch64, final, copy_oop_uninit_b, copy_oop_uninit_b, \ 128 copy_oop_uninit_b) \ 129 do_stub(final, zero_blocks) \ 130 do_arch_entry(aarch64, final, zero_blocks, zero_blocks, \ 131 zero_blocks) \ 132 do_stub(final, spin_wait) \ 133 do_arch_entry_init(aarch64, final, spin_wait, spin_wait, \ 134 spin_wait, empty_spin_wait) \ 135 /* stub only -- entries are not stored in StubRoutines::aarch64 */ \ 136 /* n.b. these are not the same as the generic atomic stubs */ \ 137 do_stub(final, atomic_entry_points) \ 138 139 140 #endif // CPU_AARCH64_STUBDECLARATIONS_HPP