annotate src/cpu/ppc/vm/interp_masm_ppc_64.hpp @ 20418:b384ba33c9a0

8050942: PPC64: implement template interpreter for ppc64le Reviewed-by: kvn, goetz Contributed-by: asmundak@google.com
author kvn
date Thu, 17 Jul 2014 15:40:04 -0700
parents 63c5920a038d
children c5e86c5cd22e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
1 /*
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
3 * Copyright 2012, 2014 SAP AG. All rights reserved.
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
5 *
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
6 * This code is free software; you can redistribute it and/or modify it
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
7 * under the terms of the GNU General Public License version 2 only, as
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
8 * published by the Free Software Foundation.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
9 *
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
10 * This code is distributed in the hope that it will be useful, but WITHOUT
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
13 * version 2 for more details (a copy is included in the LICENSE file that
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
14 * accompanied this code).
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
15 *
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License version
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
17 * 2 along with this work; if not, write to the Free Software Foundation,
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
19 *
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
21 * or visit www.oracle.com if you need additional information or have any
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
22 * questions.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
23 *
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
24 */
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
25
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
26 #ifndef CPU_PPC_VM_INTERP_MASM_PPC_64_HPP
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
27 #define CPU_PPC_VM_INTERP_MASM_PPC_64_HPP
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
28
17917
63c5920a038d 8042309: Some bugfixes for the ppc64 port.
goetz
parents: 17804
diff changeset
29 #include "asm/macroAssembler.hpp"
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
30 #include "interpreter/invocationCounter.hpp"
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
31
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
32 // This file specializes the assembler with interpreter-specific macros.
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
33
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
34
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
35 class InterpreterMacroAssembler: public MacroAssembler {
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
36
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
37 public:
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
38 InterpreterMacroAssembler(CodeBuffer* code) : MacroAssembler(code) {}
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
39
14445
67fa91961822 8029940: PPC64 (part 122): C2 compiler port
goetz
parents: 14408
diff changeset
40 void null_check_throw(Register a, int offset, Register temp_reg);
67fa91961822 8029940: PPC64 (part 122): C2 compiler port
goetz
parents: 14408
diff changeset
41
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
42 void branch_to_entry(address entry, Register Rscratch);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
43
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
44 // Handy address generation macros.
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
45 #define thread_(field_name) in_bytes(JavaThread::field_name ## _offset()), R16_thread
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
46 #define method_(field_name) in_bytes(Method::field_name ## _offset()), R19_method
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
47
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
48 #ifdef CC_INTERP
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
49 #define state_(field_name) in_bytes(byte_offset_of(BytecodeInterpreter, field_name)), R14_state
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
50 #define prev_state_(field_name) in_bytes(byte_offset_of(BytecodeInterpreter, field_name)), R15_prev_state
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
51 void pop (TosState state) {}; // Not needed.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
52 void push(TosState state) {}; // Not needed.
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
53 #endif
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
54
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
55 #ifndef CC_INTERP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
56 virtual void check_and_handle_popframe(Register java_thread);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
57 virtual void check_and_handle_earlyret(Register java_thread);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
58
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
59 // Base routine for all dispatches.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
60 void dispatch_base(TosState state, address* table);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
61
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
62 void load_earlyret_value(TosState state, Register Rscratch1);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
63
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
64 static const Address l_tmp;
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
65 static const Address d_tmp;
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
66
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
67 // dispatch routines
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
68 void dispatch_next(TosState state, int step = 0);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
69 void dispatch_via (TosState state, address* table);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
70 void load_dispatch_table(Register dst, address* table);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
71 void dispatch_Lbyte_code(TosState state, Register bytecode, address* table, bool verify = false);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
72
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
73 // Called by shared interpreter generator.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
74 void dispatch_prolog(TosState state, int step = 0);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
75 void dispatch_epilog(TosState state, int step = 0);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
76
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
77 // Super call_VM calls - correspond to MacroAssembler::call_VM(_leaf) calls.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
78 void super_call_VM_leaf(Register thread_cache, address entry_point, Register arg_1);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
79 void super_call_VM(Register thread_cache, Register oop_result, Register last_java_sp,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
80 address entry_point, Register arg_1, Register arg_2, bool check_exception = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
81
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
82 // Generate a subtype check: branch to ok_is_subtype if sub_klass is
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
83 // a subtype of super_klass. Blows registers tmp1, tmp2 and tmp3.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
84 void gen_subtype_check(Register sub_klass, Register super_klass,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
85 Register tmp1, Register tmp2, Register tmp3, Label &ok_is_subtype);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
86
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
87 // Load object from cpool->resolved_references(index).
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
88 void load_resolved_reference_at_index(Register result, Register index);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
89
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
90 void generate_stack_overflow_check_with_compare_and_throw(Register Rmem_frame_size, Register Rscratch1);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
91 void load_receiver(Register Rparam_count, Register Rrecv_dst);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
92
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
93 // helpers for expression stack
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
94 void pop_i( Register r = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
95 void pop_ptr( Register r = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
96 void pop_l( Register r = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
97 void pop_f(FloatRegister f = F15_ftos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
98 void pop_d(FloatRegister f = F15_ftos );
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
99
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
100 void push_i( Register r = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
101 void push_ptr( Register r = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
102 void push_l( Register r = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
103 void push_f(FloatRegister f = F15_ftos );
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
104 void push_d(FloatRegister f = F15_ftos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
105
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
106 void push_2ptrs(Register first, Register second);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
107
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
108 void push_l_pop_d(Register l = R17_tos, FloatRegister d = F15_ftos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
109 void push_d_pop_l(FloatRegister d = F15_ftos, Register l = R17_tos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
110
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
111 void pop (TosState state); // transition vtos -> state
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
112 void push(TosState state); // transition state -> vtos
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
113 void empty_expression_stack(); // Resets both Lesp and SP.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
114
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
115 public:
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
116 // Load values from bytecode stream:
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
117
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
118 enum signedOrNot { Signed, Unsigned };
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
119 enum setCCOrNot { set_CC, dont_set_CC };
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
120
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
121 void get_2_byte_integer_at_bcp(int bcp_offset,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
122 Register Rdst,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
123 signedOrNot is_signed);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
124
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
125 void get_4_byte_integer_at_bcp(int bcp_offset,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
126 Register Rdst,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
127 signedOrNot is_signed = Unsigned);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
128
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
129 void get_cache_index_at_bcp(Register Rdst, int bcp_offset, size_t index_size);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
130
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
131 void get_cache_and_index_at_bcp(Register cache, int bcp_offset, size_t index_size = sizeof(u2));
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
132
20418
b384ba33c9a0 8050942: PPC64: implement template interpreter for ppc64le
kvn
parents: 17917
diff changeset
133 void get_u4(Register Rdst, Register Rsrc, int offset, signedOrNot is_signed);
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
134
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
135 // common code
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
136
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
137 void field_offset_at(int n, Register tmp, Register dest, Register base);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
138 int field_offset_at(Register object, address bcp, int offset);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
139 void fast_iaaccess(int n, address bcp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
140 void fast_iagetfield(address bcp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
141 void fast_iaputfield(address bcp, bool do_store_check);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
142
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
143 void index_check(Register array, Register index, int index_shift, Register tmp, Register res);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
144 void index_check_without_pop(Register array, Register index, int index_shift, Register tmp, Register res);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
145
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
146 void get_const(Register Rdst);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
147 void get_constant_pool(Register Rdst);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
148 void get_constant_pool_cache(Register Rdst);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
149 void get_cpool_and_tags(Register Rcpool, Register Rtags);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
150 void is_a(Label& L);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
151
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
152 // Java Call Helpers
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
153 void call_from_interpreter(Register Rtarget_method, Register Rret_addr, Register Rscratch1, Register Rscratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
154
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
155 // --------------------------------------------------
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
156
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
157 void unlock_if_synchronized_method(TosState state, bool throw_monitor_exception = true,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
158 bool install_monitor_exception = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
159
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
160 // Removes the current activation (incl. unlocking of monitors).
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
161 // Additionally this code is used for earlyReturn in which case we
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
162 // want to skip throwing an exception and installing an exception.
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
163 void remove_activation(TosState state,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
164 bool throw_monitor_exception = true,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
165 bool install_monitor_exception = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
166 void merge_frames(Register Rtop_frame_sp, Register return_pc, Register Rscratch1, Register Rscratch2); // merge top frames
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
167
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
168 void add_monitor_to_stack(bool stack_is_empty, Register Rtemp1, Register Rtemp2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
169
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
170 // Local variable access helpers
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
171 void load_local_int(Register Rdst_value, Register Rdst_address, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
172 void load_local_long(Register Rdst_value, Register Rdst_address, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
173 void load_local_ptr(Register Rdst_value, Register Rdst_address, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
174 void load_local_float(FloatRegister Rdst_value, Register Rdst_address, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
175 void load_local_double(FloatRegister Rdst_value, Register Rdst_address, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
176 void store_local_int(Register Rvalue, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
177 void store_local_long(Register Rvalue, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
178 void store_local_ptr(Register Rvalue, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
179 void store_local_float(FloatRegister Rvalue, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
180 void store_local_double(FloatRegister Rvalue, Register Rindex);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
181
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
182 // Call VM for std frames
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
183 // Special call VM versions that check for exceptions and forward exception
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
184 // via short cut (not via expensive forward exception stub).
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
185 void check_and_forward_exception(Register Rscratch1, Register Rscratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
186 void call_VM(Register oop_result, address entry_point, bool check_exceptions = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
187 void call_VM(Register oop_result, address entry_point, Register arg_1, bool check_exceptions = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
188 void call_VM(Register oop_result, address entry_point, Register arg_1, Register arg_2, bool check_exceptions = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
189 void call_VM(Register oop_result, address entry_point, Register arg_1, Register arg_2, Register arg_3, bool check_exceptions = true);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
190 // Should not be used:
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
191 void call_VM(Register oop_result, Register last_java_sp, address entry_point, bool check_exceptions = true) {ShouldNotReachHere();}
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
192 void call_VM(Register oop_result, Register last_java_sp, address entry_point, Register arg_1, bool check_exceptions = true) {ShouldNotReachHere();}
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
193 void call_VM(Register oop_result, Register last_java_sp, address entry_point, Register arg_1, Register arg_2, bool check_exceptions = true) {ShouldNotReachHere();}
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
194 void call_VM(Register oop_result, Register last_java_sp, address entry_point, Register arg_1, Register arg_2, Register arg_3, bool check_exceptions = true) {ShouldNotReachHere();}
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
195
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
196 Address first_local_in_stack();
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
197
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
198 enum LoadOrStore { load, store };
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
199 void static_iload_or_store(int which_local, LoadOrStore direction, Register Rtmp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
200 void static_aload_or_store(int which_local, LoadOrStore direction, Register Rtmp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
201 void static_dload_or_store(int which_local, LoadOrStore direction);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
202
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
203 void save_interpreter_state(Register scratch);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
204 void restore_interpreter_state(Register scratch, bool bcp_and_mdx_only = false);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
205
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
206 void increment_backedge_counter(const Register Rcounters, Register Rtmp, Register Rtmp2, Register Rscratch);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
207 void test_backedge_count_for_osr(Register backedge_count, Register branch_bcp, Register Rtmp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
208
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
209 void record_static_call_in_profile(Register Rentry, Register Rtmp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
210 void record_receiver_call_in_profile(Register Rklass, Register Rentry, Register Rtmp);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
211 #endif // !CC_INTERP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
212
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
213 void get_method_counters(Register method, Register Rcounters, Label& skip);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
214 void increment_invocation_counter(Register iv_be_count, Register Rtmp1, Register Rtmp2_r0);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
215
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
216 // Object locking
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
217 void lock_object (Register lock_reg, Register obj_reg);
14445
67fa91961822 8029940: PPC64 (part 122): C2 compiler port
goetz
parents: 14408
diff changeset
218 void unlock_object(Register lock_reg, bool check_for_exceptions = true);
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
219
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
220 #ifndef CC_INTERP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
221
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
222 // Interpreter profiling operations
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
223 void set_method_data_pointer_for_bcp();
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
224 void test_method_data_pointer(Label& zero_continue);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
225 void verify_method_data_pointer();
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
226 void test_invocation_counter_for_mdp(Register invocation_count, Register Rscratch, Label &profile_continue);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
227
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
228 void set_mdp_data_at(int constant, Register value);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
229
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
230 void increment_mdp_data_at(int constant, Register counter_addr, Register Rbumped_count, bool decrement = false);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
231
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
232 void increment_mdp_data_at(Register counter_addr, Register Rbumped_count, bool decrement = false);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
233 void increment_mdp_data_at(Register reg, int constant, Register scratch, Register Rbumped_count, bool decrement = false);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
234
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
235 void set_mdp_flag_at(int flag_constant, Register scratch);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
236 void test_mdp_data_at(int offset, Register value, Label& not_equal_continue, Register test_out);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
237
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
238 void update_mdp_by_offset(int offset_of_disp, Register scratch);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
239 void update_mdp_by_offset(Register reg, int offset_of_disp,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
240 Register scratch);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
241 void update_mdp_by_constant(int constant);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
242 void update_mdp_for_ret(TosState state, Register return_bci);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
243
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
244 void profile_taken_branch(Register scratch, Register bumped_count);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
245 void profile_not_taken_branch(Register scratch1, Register scratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
246 void profile_call(Register scratch1, Register scratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
247 void profile_final_call(Register scratch1, Register scratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
248 void profile_virtual_call(Register Rreceiver, Register Rscratch1, Register Rscratch2, bool receiver_can_be_null);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
249 void profile_typecheck(Register Rklass, Register Rscratch1, Register Rscratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
250 void profile_typecheck_failed(Register Rscratch1, Register Rscratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
251 void profile_ret(TosState state, Register return_bci, Register scratch1, Register scratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
252 void profile_switch_default(Register scratch1, Register scratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
253 void profile_switch_case(Register index, Register scratch1,Register scratch2, Register scratch3);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
254 void profile_null_seen(Register Rscratch1, Register Rscratch2);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
255 void record_klass_in_profile(Register receiver, Register scratch1, Register scratch2, bool is_virtual_call);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
256 void record_klass_in_profile_helper(Register receiver, Register scratch1, Register scratch2, int start_row, Label& done, bool is_virtual_call);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
257
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
258 #endif // !CC_INTERP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
259
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
260 // Debugging
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
261 void verify_oop(Register reg, TosState state = atos); // only if +VerifyOops && state == atos
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
262 #ifndef CC_INTERP
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
263 void verify_oop_or_return_address(Register reg, Register rtmp); // for astore
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
264 void verify_FPU(int stack_depth, TosState state = ftos);
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
265 #endif // !CC_INTERP
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
266
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
267 typedef enum { NotifyJVMTI, SkipNotifyJVMTI } NotifyMethodExitMode;
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
268
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
269 // Support for jvmdi/jvmpi.
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
270 void notify_method_entry();
17804
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
271 void notify_method_exit(bool is_native_method, TosState state,
fd1b9f02cc91 8036976: PPC64: implement the template interpreter
goetz
parents: 14445
diff changeset
272 NotifyMethodExitMode mode, bool check_exceptions);
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
273
14445
67fa91961822 8029940: PPC64 (part 122): C2 compiler port
goetz
parents: 14408
diff changeset
274 #ifdef CC_INTERP
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
275 // Convert the current TOP_IJAVA_FRAME into a PARENT_IJAVA_FRAME
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
276 // (using parent_frame_resize) and push a new interpreter
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
277 // TOP_IJAVA_FRAME (using frame_size).
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
278 void push_interpreter_frame(Register top_frame_size, Register parent_frame_resize,
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
279 Register tmp1, Register tmp2, Register tmp3, Register tmp4, Register pc=noreg);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
280
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
281 // Pop the topmost TOP_IJAVA_FRAME and convert the previous
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
282 // PARENT_IJAVA_FRAME back into a TOP_IJAVA_FRAME.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
283 void pop_interpreter_frame(Register tmp1, Register tmp2, Register tmp3, Register tmp4);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
284
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
285 // Turn state's interpreter frame into the current TOP_IJAVA_FRAME.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
286 void pop_interpreter_frame_to_state(Register state, Register tmp1, Register tmp2, Register tmp3);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
287
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
288 // Set SP to initial caller's sp, but before fix the back chain.
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
289 void resize_frame_to_initial_caller(Register tmp1, Register tmp2);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
290
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
291 // Pop the current interpreter state (without popping the
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
292 // correspoding frame) and restore R14_state and R15_prev_state
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
293 // accordingly. Use prev_state_may_be_0 to indicate whether
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
294 // prev_state may be 0 in order to generate an extra check before
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
295 // retrieving prev_state_(_prev_link).
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
296 void pop_interpreter_state(bool prev_state_may_be_0);
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
297
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
298 void restore_prev_state();
14445
67fa91961822 8029940: PPC64 (part 122): C2 compiler port
goetz
parents: 14408
diff changeset
299 #endif
14408
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
300 };
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
301
ec28f9c041ff 8019972: PPC64 (part 9): platform files for interpreter only VM.
goetz
parents:
diff changeset
302 #endif // CPU_PPC_VM_INTERP_MASM_PPC_64_HPP