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_PPC_VM_INTERP_MASM_PPC_64_HPP
27 #define CPU_PPC_VM_INTERP_MASM_PPC_64_HPP
28
29 #include "asm/macroAssembler.hpp"
30 #include "interpreter/invocationCounter.hpp"
31
32 // This file specializes the assembler with interpreter-specific macros.
33
34
35 class InterpreterMacroAssembler: public MacroAssembler {
36
37 public:
38 InterpreterMacroAssembler(CodeBuffer* code) : MacroAssembler(code) {}
39
40 void null_check_throw(Register a, int offset, Register temp_reg);
41
42 void jump_to_entry(address entry, Register Rscratch);
43
44 // Handy address generation macros.
45 #define thread_(field_name) in_bytes(JavaThread::field_name ## _offset()), R16_thread
46 #define method_(field_name) in_bytes(Method::field_name ## _offset()), R19_method
47
246
247 // Argument and return type profiling.
248 void profile_obj_type(Register obj, Register mdo_addr_base, RegisterOrConstant mdo_addr_offs, Register tmp, Register tmp2);
249 void profile_arguments_type(Register callee, Register tmp1, Register tmp2, bool is_virtual);
250 void profile_return_type(Register ret, Register tmp1, Register tmp2);
251 void profile_parameters_type(Register tmp1, Register tmp2, Register tmp3, Register tmp4);
252
253 // Debugging
254 void verify_oop(Register reg, TosState state = atos); // only if +VerifyOops && state == atos
255 void verify_oop_or_return_address(Register reg, Register rtmp); // for astore
256 void verify_FPU(int stack_depth, TosState state = ftos);
257
258 typedef enum { NotifyJVMTI, SkipNotifyJVMTI } NotifyMethodExitMode;
259
260 // Support for jvmdi/jvmpi.
261 void notify_method_entry();
262 void notify_method_exit(bool is_native_method, TosState state,
263 NotifyMethodExitMode mode, bool check_exceptions);
264 };
265
266 #endif // CPU_PPC_VM_INTERP_MASM_PPC_64_HPP
|
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_PPC_VM_INTERP_MASM_PPC_HPP
27 #define CPU_PPC_VM_INTERP_MASM_PPC_HPP
28
29 #include "asm/macroAssembler.hpp"
30 #include "interpreter/invocationCounter.hpp"
31
32 // This file specializes the assembler with interpreter-specific macros.
33
34
35 class InterpreterMacroAssembler: public MacroAssembler {
36
37 public:
38 InterpreterMacroAssembler(CodeBuffer* code) : MacroAssembler(code) {}
39
40 void null_check_throw(Register a, int offset, Register temp_reg);
41
42 void jump_to_entry(address entry, Register Rscratch);
43
44 // Handy address generation macros.
45 #define thread_(field_name) in_bytes(JavaThread::field_name ## _offset()), R16_thread
46 #define method_(field_name) in_bytes(Method::field_name ## _offset()), R19_method
47
246
247 // Argument and return type profiling.
248 void profile_obj_type(Register obj, Register mdo_addr_base, RegisterOrConstant mdo_addr_offs, Register tmp, Register tmp2);
249 void profile_arguments_type(Register callee, Register tmp1, Register tmp2, bool is_virtual);
250 void profile_return_type(Register ret, Register tmp1, Register tmp2);
251 void profile_parameters_type(Register tmp1, Register tmp2, Register tmp3, Register tmp4);
252
253 // Debugging
254 void verify_oop(Register reg, TosState state = atos); // only if +VerifyOops && state == atos
255 void verify_oop_or_return_address(Register reg, Register rtmp); // for astore
256 void verify_FPU(int stack_depth, TosState state = ftos);
257
258 typedef enum { NotifyJVMTI, SkipNotifyJVMTI } NotifyMethodExitMode;
259
260 // Support for jvmdi/jvmpi.
261 void notify_method_entry();
262 void notify_method_exit(bool is_native_method, TosState state,
263 NotifyMethodExitMode mode, bool check_exceptions);
264 };
265
266 #endif // CPU_PPC_VM_INTERP_MASM_PPC_HPP
|