hotspot/src/cpu/ppc/vm/ppc.ad
changeset 35913 928548a43408
parent 35594 cc13089c6327
parent 35899 0dbc821628fc
child 36303 6241574f5982
--- a/hotspot/src/cpu/ppc/vm/ppc.ad	Thu Jan 28 16:30:37 2016 -0800
+++ b/hotspot/src/cpu/ppc/vm/ppc.ad	Wed Feb 03 01:35:25 2016 +0100
@@ -3568,8 +3568,8 @@
 
       __ load_klass(R11_scratch1, R3);
 
-      int entry_offset = InstanceKlass::vtable_start_offset() + _vtable_index * vtableEntry::size();
-      int v_off = entry_offset * wordSize + vtableEntry::method_offset_in_bytes();
+      int entry_offset = in_bytes(Klass::vtable_start_offset()) + _vtable_index * vtableEntry::size_in_bytes();
+      int v_off = entry_offset + vtableEntry::method_offset_in_bytes();
       __ li(R19_method, v_off);
       __ ldx(R19_method/*method oop*/, R19_method/*method offset*/, R11_scratch1/*class*/);
       // NOTE: for vtable dispatches, the vtable entry will never be