comparison src/cpu/sparc/vm/vtableStubs_sparc.cpp @ 4114:6729bbc1fcd6

7003454: order constants in constant table by number of references in code Reviewed-by: kvn, never, bdelsart
author twisti
date Wed, 16 Nov 2011 01:39:50 -0800
parents 3d42f82cd811
children 1d7922586cf6
comparison
equal deleted inserted replaced
4113:8c57262447d3 4114:6729bbc1fcd6
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 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. 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.
81 __ call_VM(noreg, CAST_FROM_FN_PTR(address, bad_compiled_vtable_index), O0, O2); 81 __ call_VM(noreg, CAST_FROM_FN_PTR(address, bad_compiled_vtable_index), O0, O2);
82 __ bind(L); 82 __ bind(L);
83 } 83 }
84 #endif 84 #endif
85 int v_off = entry_offset*wordSize + vtableEntry::method_offset_in_bytes(); 85 int v_off = entry_offset*wordSize + vtableEntry::method_offset_in_bytes();
86 if( __ is_simm13(v_off) ) { 86 if (Assembler::is_simm13(v_off)) {
87 __ ld_ptr(G3, v_off, G5_method); 87 __ ld_ptr(G3, v_off, G5_method);
88 } else { 88 } else {
89 __ set(v_off,G5); 89 __ set(v_off,G5);
90 __ ld_ptr(G3, G5, G5_method); 90 __ ld_ptr(G3, G5, G5_method);
91 } 91 }