1 /*
2 * Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
73 void set_unimplemented(int i);
74 void set_entry_points_for_all_bytes();
75 void set_safepoints_for_all_bytes();
76
77 // Helpers for generate_and_dispatch
78 address generate_trace_code(TosState state) PRODUCT_RETURN_NULL;
79 void count_bytecode() PRODUCT_RETURN;
80 void histogram_bytecode(Template* t) PRODUCT_RETURN;
81 void histogram_bytecode_pair(Template* t) PRODUCT_RETURN;
82 void trace_bytecode(Template* t) PRODUCT_RETURN;
83 void stop_interpreter_at() PRODUCT_RETURN;
84
85 void generate_all();
86
87 // entry point generator
88 address generate_method_entry(AbstractInterpreter::MethodKind kind, bool native);
89
90 // generate intrinsic method entries
91 address generate_intrinsic_entry(AbstractInterpreter::MethodKind kind);
92
93 address generate_normal_entry(bool synchronized);
94 address generate_native_entry(bool synchronized);
95 address generate_abstract_entry(void);
96 address generate_math_entry(AbstractInterpreter::MethodKind kind);
97 address generate_Reference_get_entry();
98 address generate_CRC32_update_entry();
99 address generate_CRC32_updateBytes_entry(AbstractInterpreter::MethodKind kind);
100 address generate_CRC32C_updateBytes_entry(AbstractInterpreter::MethodKind kind);
101 address generate_currentThread();
102 address generate_Float_float16ToFloat_entry();
103 address generate_Float_floatToFloat16_entry();
104
105 // Some platforms don't need registers, other need two. Unused function is
106 // left unimplemented.
107 void generate_stack_overflow_check(void);
108 void generate_stack_overflow_check(Register Rframe_size, Register Rscratch);
109
110 void generate_counter_incr(Label* overflow);
111 void generate_counter_overflow(Label& continue_entry);
112
113 void generate_fixed_frame(bool native_call);
|
1 /*
2 * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
73 void set_unimplemented(int i);
74 void set_entry_points_for_all_bytes();
75 void set_safepoints_for_all_bytes();
76
77 // Helpers for generate_and_dispatch
78 address generate_trace_code(TosState state) PRODUCT_RETURN_NULL;
79 void count_bytecode() PRODUCT_RETURN;
80 void histogram_bytecode(Template* t) PRODUCT_RETURN;
81 void histogram_bytecode_pair(Template* t) PRODUCT_RETURN;
82 void trace_bytecode(Template* t) PRODUCT_RETURN;
83 void stop_interpreter_at() PRODUCT_RETURN;
84
85 void generate_all();
86
87 // entry point generator
88 address generate_method_entry(AbstractInterpreter::MethodKind kind, bool native);
89
90 // generate intrinsic method entries
91 address generate_intrinsic_entry(AbstractInterpreter::MethodKind kind);
92
93 address generate_normal_entry(bool synchronized, bool object_init);
94 address generate_native_entry(bool synchronized);
95 address generate_abstract_entry(void);
96 address generate_math_entry(AbstractInterpreter::MethodKind kind);
97 address generate_Reference_get_entry();
98 address generate_CRC32_update_entry();
99 address generate_CRC32_updateBytes_entry(AbstractInterpreter::MethodKind kind);
100 address generate_CRC32C_updateBytes_entry(AbstractInterpreter::MethodKind kind);
101 address generate_currentThread();
102 address generate_Float_float16ToFloat_entry();
103 address generate_Float_floatToFloat16_entry();
104
105 // Some platforms don't need registers, other need two. Unused function is
106 // left unimplemented.
107 void generate_stack_overflow_check(void);
108 void generate_stack_overflow_check(Register Rframe_size, Register Rscratch);
109
110 void generate_counter_incr(Label* overflow);
111 void generate_counter_overflow(Label& continue_entry);
112
113 void generate_fixed_frame(bool native_call);
|