src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp

changeset 2203
c393f046f4c5
parent 2174
f02a8bbe6ed4
child 2228
07a218de38cb
equal deleted inserted replaced
2202:a932f331ef90 2203:c393f046f4c5
662 LIRItem val (x->argument_at(3), this); // replace field with val if matches cmp 662 LIRItem val (x->argument_at(3), this); // replace field with val if matches cmp
663 663
664 // Use temps to avoid kills 664 // Use temps to avoid kills
665 LIR_Opr t1 = FrameMap::G1_opr; 665 LIR_Opr t1 = FrameMap::G1_opr;
666 LIR_Opr t2 = FrameMap::G3_opr; 666 LIR_Opr t2 = FrameMap::G3_opr;
667 LIR_Opr addr = new_pointer_register(); 667 LIR_Opr addr = (type == objectType) ? new_register(T_OBJECT) : new_pointer_register();
668 668
669 // get address of field 669 // get address of field
670 obj.load_item(); 670 obj.load_item();
671 offset.load_item(); 671 offset.load_item();
672 cmp.load_item(); 672 cmp.load_item();

mercurial