src/share/vm/c1/c1_LIRGenerator.cpp

changeset 739
dc7f315e41f7
parent 435
a61af66fc99e
child 772
9ee9cf798b59
child 797
f8199438385b
equal deleted inserted replaced
738:fa4d1d240383 739:dc7f315e41f7
1715 LIR_Address* addr; 1715 LIR_Address* addr;
1716 if (index_op->is_constant()) { 1716 if (index_op->is_constant()) {
1717 assert(log2_scale == 0, "must not have a scale"); 1717 assert(log2_scale == 0, "must not have a scale");
1718 addr = new LIR_Address(base_op, index_op->as_jint(), dst_type); 1718 addr = new LIR_Address(base_op, index_op->as_jint(), dst_type);
1719 } else { 1719 } else {
1720 #ifdef IA32 1720 #ifdef X86
1721 addr = new LIR_Address(base_op, index_op, LIR_Address::Scale(log2_scale), 0, dst_type); 1721 addr = new LIR_Address(base_op, index_op, LIR_Address::Scale(log2_scale), 0, dst_type);
1722 #else 1722 #else
1723 if (index_op->is_illegal() || log2_scale == 0) { 1723 if (index_op->is_illegal() || log2_scale == 0) {
1724 addr = new LIR_Address(base_op, index_op, dst_type); 1724 addr = new LIR_Address(base_op, index_op, dst_type);
1725 } else { 1725 } else {

mercurial