1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
195 GEN_VALUE(MAX_METHOD_CODE_SIZE, max_method_code_size); |
195 GEN_VALUE(MAX_METHOD_CODE_SIZE, max_method_code_size); |
196 #if defined(sparc) || defined(__sparc) |
196 #if defined(sparc) || defined(__sparc) |
197 GEN_VALUE(OFFSET_interpreter_frame_method, 2 * pointer_size); /* L2 in saved window */ |
197 GEN_VALUE(OFFSET_interpreter_frame_method, 2 * pointer_size); /* L2 in saved window */ |
198 GEN_VALUE(OFFSET_interpreter_frame_sender_sp, 13 * pointer_size); /* I5 in saved window */ |
198 GEN_VALUE(OFFSET_interpreter_frame_sender_sp, 13 * pointer_size); /* I5 in saved window */ |
199 // Fake value for consistency. It is not going to be used. |
199 // Fake value for consistency. It is not going to be used. |
200 GEN_VALUE(OFFSET_interpreter_frame_bcx_offset, 0xFFFF); |
200 GEN_VALUE(OFFSET_interpreter_frame_bcp_offset, 0xFFFF); |
201 #elif defined(i386) || defined(__i386) || defined(__amd64) |
201 #elif defined(i386) || defined(__i386) || defined(__amd64) |
202 GEN_VALUE(OFFSET_interpreter_frame_sender_sp, -1 * pointer_size); |
202 GEN_VALUE(OFFSET_interpreter_frame_sender_sp, -1 * pointer_size); |
203 GEN_VALUE(OFFSET_interpreter_frame_method, -3 * pointer_size); |
203 GEN_VALUE(OFFSET_interpreter_frame_method, -3 * pointer_size); |
204 GEN_VALUE(OFFSET_interpreter_frame_bcx_offset, -7 * pointer_size); |
204 GEN_VALUE(OFFSET_interpreter_frame_bcp_offset, -7 * pointer_size); |
205 #endif |
205 #endif |
206 |
206 |
207 GEN_OFFS(Klass, _name); |
207 GEN_OFFS(Klass, _name); |
208 GEN_OFFS(ConstantPool, _pool_holder); |
208 GEN_OFFS(ConstantPool, _pool_holder); |
209 printf("\n"); |
209 printf("\n"); |