src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp

Print this page

        

*** 219,239 **** } } if (needs_card_mark) { LIR_Opr ptr = new_pointer_register(); __ add(base_opr, LIR_OprFact::intptrConst(offset), ptr); ! return new LIR_Address(ptr, 0, type); } else { return new LIR_Address(base_opr, offset, type); } } void LIRGenerator::increment_counter(address counter, int step) { LIR_Opr pointer = new_pointer_register(); __ move(LIR_OprFact::intptrConst(counter), pointer); ! LIR_Address* addr = new LIR_Address(pointer, 0, T_INT); increment_counter(addr, step); } void LIRGenerator::increment_counter(LIR_Address* addr, int step) { LIR_Opr temp = new_register(T_INT); --- 219,239 ---- } } if (needs_card_mark) { LIR_Opr ptr = new_pointer_register(); __ add(base_opr, LIR_OprFact::intptrConst(offset), ptr); ! return new LIR_Address(ptr, (intx)0, type); } else { return new LIR_Address(base_opr, offset, type); } } void LIRGenerator::increment_counter(address counter, int step) { LIR_Opr pointer = new_pointer_register(); __ move(LIR_OprFact::intptrConst(counter), pointer); ! LIR_Address* addr = new LIR_Address(pointer, (intx)0, T_INT); increment_counter(addr, step); } void LIRGenerator::increment_counter(LIR_Address* addr, int step) { LIR_Opr temp = new_register(T_INT);
*** 1157,1167 **** } LIR_Address* addr; if (type == T_ARRAY || type == T_OBJECT) { LIR_Opr tmp = new_pointer_register(); __ add(base_op, index_op, tmp); ! addr = new LIR_Address(tmp, 0, type); } else { addr = new LIR_Address(base_op, index_op, type); } if (is_obj) { --- 1157,1167 ---- } LIR_Address* addr; if (type == T_ARRAY || type == T_OBJECT) { LIR_Opr tmp = new_pointer_register(); __ add(base_op, index_op, tmp); ! addr = new LIR_Address(tmp, (intx)0, type); } else { addr = new LIR_Address(base_op, index_op, type); } if (is_obj) {