Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/c1_LIRAssembler_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 | eba044a722a4 |
children | 2685ea97b89f 069ab3f976d3 |
comparison
equal
deleted
inserted
replaced
4113:8c57262447d3 | 4114:6729bbc1fcd6 |
---|---|
763 | 763 |
764 | 764 |
765 void LIR_Assembler::vtable_call(LIR_OpJavaCall* op) { | 765 void LIR_Assembler::vtable_call(LIR_OpJavaCall* op) { |
766 add_debug_info_for_null_check_here(op->info()); | 766 add_debug_info_for_null_check_here(op->info()); |
767 __ load_klass(O0, G3_scratch); | 767 __ load_klass(O0, G3_scratch); |
768 if (__ is_simm13(op->vtable_offset())) { | 768 if (Assembler::is_simm13(op->vtable_offset())) { |
769 __ ld_ptr(G3_scratch, op->vtable_offset(), G5_method); | 769 __ ld_ptr(G3_scratch, op->vtable_offset(), G5_method); |
770 } else { | 770 } else { |
771 // This will generate 2 instructions | 771 // This will generate 2 instructions |
772 __ set(op->vtable_offset(), G5_method); | 772 __ set(op->vtable_offset(), G5_method); |
773 // ld_ptr, set_hi, set | 773 // ld_ptr, set_hi, set |