1 /*
2 * Copyright (c) 1997, 2010, 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 *
108 interpreter_frame_oop_temp_offset = 2, // for native calls only
109
110 interpreter_frame_sender_sp_offset = -1,
111 // outgoing sp before a call to an invoked method
112 interpreter_frame_last_sp_offset = interpreter_frame_sender_sp_offset - 1,
113 interpreter_frame_method_offset = interpreter_frame_last_sp_offset - 1,
114 interpreter_frame_mdx_offset = interpreter_frame_method_offset - 1,
115 interpreter_frame_cache_offset = interpreter_frame_mdx_offset - 1,
116 interpreter_frame_locals_offset = interpreter_frame_cache_offset - 1,
117 interpreter_frame_bcx_offset = interpreter_frame_locals_offset - 1,
118 interpreter_frame_initial_sp_offset = interpreter_frame_bcx_offset - 1,
119
120 interpreter_frame_monitor_block_top_offset = interpreter_frame_initial_sp_offset,
121 interpreter_frame_monitor_block_bottom_offset = interpreter_frame_initial_sp_offset,
122
123 #endif // CC_INTERP
124
125 // Entry frames
126 #ifdef AMD64
127 #ifdef _WIN64
128 entry_frame_after_call_words = 8,
129 entry_frame_call_wrapper_offset = 2,
130
131 arg_reg_save_area_bytes = 32, // Register argument save area
132 #else
133 entry_frame_after_call_words = 13,
134 entry_frame_call_wrapper_offset = -6,
135
136 arg_reg_save_area_bytes = 0,
137 #endif // _WIN64
138 #else
139 entry_frame_call_wrapper_offset = 2,
140 #endif // AMD64
141
142 // Native frames
143
144 native_frame_initial_param_offset = 2
145
146 };
147
148 intptr_t ptr_at(int offset) const {
|
1 /*
2 * Copyright (c) 1997, 2011, 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 *
108 interpreter_frame_oop_temp_offset = 2, // for native calls only
109
110 interpreter_frame_sender_sp_offset = -1,
111 // outgoing sp before a call to an invoked method
112 interpreter_frame_last_sp_offset = interpreter_frame_sender_sp_offset - 1,
113 interpreter_frame_method_offset = interpreter_frame_last_sp_offset - 1,
114 interpreter_frame_mdx_offset = interpreter_frame_method_offset - 1,
115 interpreter_frame_cache_offset = interpreter_frame_mdx_offset - 1,
116 interpreter_frame_locals_offset = interpreter_frame_cache_offset - 1,
117 interpreter_frame_bcx_offset = interpreter_frame_locals_offset - 1,
118 interpreter_frame_initial_sp_offset = interpreter_frame_bcx_offset - 1,
119
120 interpreter_frame_monitor_block_top_offset = interpreter_frame_initial_sp_offset,
121 interpreter_frame_monitor_block_bottom_offset = interpreter_frame_initial_sp_offset,
122
123 #endif // CC_INTERP
124
125 // Entry frames
126 #ifdef AMD64
127 #ifdef _WIN64
128 entry_frame_after_call_words = 28,
129 entry_frame_call_wrapper_offset = 2,
130
131 arg_reg_save_area_bytes = 32, // Register argument save area
132 #else
133 entry_frame_after_call_words = 13,
134 entry_frame_call_wrapper_offset = -6,
135
136 arg_reg_save_area_bytes = 0,
137 #endif // _WIN64
138 #else
139 entry_frame_call_wrapper_offset = 2,
140 #endif // AMD64
141
142 // Native frames
143
144 native_frame_initial_param_offset = 2
145
146 };
147
148 intptr_t ptr_at(int offset) const {
|