equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2016, 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. |
76 // set Method* (in case of interpreted method), and destination address |
76 // set Method* (in case of interpreted method), and destination address |
77 #ifndef PRODUCT |
77 #ifndef PRODUCT |
78 if (DebugVtables) { |
78 if (DebugVtables) { |
79 Label L; |
79 Label L; |
80 // check offset vs vtable length |
80 // check offset vs vtable length |
81 __ ld(G3_scratch, InstanceKlass::vtable_length_offset()*wordSize, G5); |
81 __ ld(G3_scratch, in_bytes(InstanceKlass::vtable_length_offset()), G5); |
82 __ cmp_and_br_short(G5, vtable_index*vtableEntry::size(), Assembler::greaterUnsigned, Assembler::pt, L); |
82 __ cmp_and_br_short(G5, vtable_index*vtableEntry::size(), Assembler::greaterUnsigned, Assembler::pt, L); |
83 __ set(vtable_index, O2); |
83 __ set(vtable_index, O2); |
84 __ call_VM(noreg, CAST_FROM_FN_PTR(address, bad_compiled_vtable_index), O0, O2); |
84 __ call_VM(noreg, CAST_FROM_FN_PTR(address, bad_compiled_vtable_index), O0, O2); |
85 __ bind(L); |
85 __ bind(L); |
86 } |
86 } |