1 /* |
1 /* |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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. |
659 #endif // not PRODUCT |
659 #endif // not PRODUCT |
660 static ByteSize native_function_offset() { return in_ByteSize(sizeof(Method)); } |
660 static ByteSize native_function_offset() { return in_ByteSize(sizeof(Method)); } |
661 static ByteSize from_interpreted_offset() { return byte_offset_of(Method, _from_interpreted_entry ); } |
661 static ByteSize from_interpreted_offset() { return byte_offset_of(Method, _from_interpreted_entry ); } |
662 static ByteSize interpreter_entry_offset() { return byte_offset_of(Method, _i2i_entry ); } |
662 static ByteSize interpreter_entry_offset() { return byte_offset_of(Method, _i2i_entry ); } |
663 static ByteSize signature_handler_offset() { return in_ByteSize(sizeof(Method) + wordSize); } |
663 static ByteSize signature_handler_offset() { return in_ByteSize(sizeof(Method) + wordSize); } |
|
664 static ByteSize itable_index_offset() { return byte_offset_of(Method, _vtable_index ); } |
664 |
665 |
665 // for code generation |
666 // for code generation |
666 static int method_data_offset_in_bytes() { return offset_of(Method, _method_data); } |
667 static int method_data_offset_in_bytes() { return offset_of(Method, _method_data); } |
667 static int intrinsic_id_offset_in_bytes() { return offset_of(Method, _intrinsic_id); } |
668 static int intrinsic_id_offset_in_bytes() { return offset_of(Method, _intrinsic_id); } |
668 static int intrinsic_id_size_in_bytes() { return sizeof(u1); } |
669 static int intrinsic_id_size_in_bytes() { return sizeof(u1); } |