1 /*
2 * Copyright (c) 1997, 2013, 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 *
167 static int unordered_dcmpge(double x, double y);
168 static int unordered_fcmpgt(float x, float y);
169 static int unordered_dcmpgt(double x, double y);
170
171 static float fneg(float f);
172 static double dneg(double f);
173 #endif
174
175 // exception handling across interpreter/compiler boundaries
176 static address raw_exception_handler_for_return_address(JavaThread* thread, address return_address);
177 static address exception_handler_for_return_address(JavaThread* thread, address return_address);
178
179 #if INCLUDE_ALL_GCS
180 // G1 write barriers
181 static void g1_wb_pre(oopDesc* orig, JavaThread *thread);
182 static void g1_wb_post(void* card_addr, JavaThread* thread);
183 #endif // INCLUDE_ALL_GCS
184
185 // exception handling and implicit exceptions
186 static address compute_compiled_exc_handler(nmethod* nm, address ret_pc, Handle& exception,
187 bool force_unwind, bool top_frame_only);
188 enum ImplicitExceptionKind {
189 IMPLICIT_NULL,
190 IMPLICIT_DIVIDE_BY_ZERO,
191 STACK_OVERFLOW
192 };
193 static void throw_AbstractMethodError(JavaThread* thread);
194 static void throw_IncompatibleClassChangeError(JavaThread* thread);
195 static void throw_ArithmeticException(JavaThread* thread);
196 static void throw_NullPointerException(JavaThread* thread);
197 static void throw_NullPointerException_at_call(JavaThread* thread);
198 static void throw_StackOverflowError(JavaThread* thread);
199 static address continuation_for_implicit_exception(JavaThread* thread,
200 address faulting_pc,
201 ImplicitExceptionKind exception_kind);
202
203 // Shared stub locations
204 static address get_poll_stub(address pc);
205
206 static address get_ic_miss_stub() {
207 assert(_ic_miss_blob!= NULL, "oops");
|
1 /*
2 * Copyright (c) 1997, 2018, 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 *
167 static int unordered_dcmpge(double x, double y);
168 static int unordered_fcmpgt(float x, float y);
169 static int unordered_dcmpgt(double x, double y);
170
171 static float fneg(float f);
172 static double dneg(double f);
173 #endif
174
175 // exception handling across interpreter/compiler boundaries
176 static address raw_exception_handler_for_return_address(JavaThread* thread, address return_address);
177 static address exception_handler_for_return_address(JavaThread* thread, address return_address);
178
179 #if INCLUDE_ALL_GCS
180 // G1 write barriers
181 static void g1_wb_pre(oopDesc* orig, JavaThread *thread);
182 static void g1_wb_post(void* card_addr, JavaThread* thread);
183 #endif // INCLUDE_ALL_GCS
184
185 // exception handling and implicit exceptions
186 static address compute_compiled_exc_handler(nmethod* nm, address ret_pc, Handle& exception,
187 bool force_unwind, bool top_frame_only, bool& recursive_exception_occurred);
188 enum ImplicitExceptionKind {
189 IMPLICIT_NULL,
190 IMPLICIT_DIVIDE_BY_ZERO,
191 STACK_OVERFLOW
192 };
193 static void throw_AbstractMethodError(JavaThread* thread);
194 static void throw_IncompatibleClassChangeError(JavaThread* thread);
195 static void throw_ArithmeticException(JavaThread* thread);
196 static void throw_NullPointerException(JavaThread* thread);
197 static void throw_NullPointerException_at_call(JavaThread* thread);
198 static void throw_StackOverflowError(JavaThread* thread);
199 static address continuation_for_implicit_exception(JavaThread* thread,
200 address faulting_pc,
201 ImplicitExceptionKind exception_kind);
202
203 // Shared stub locations
204 static address get_poll_stub(address pc);
205
206 static address get_ic_miss_stub() {
207 assert(_ic_miss_blob!= NULL, "oops");
|