equal
deleted
inserted
replaced
149 BasicType type, bool needs_card_mark) { |
149 BasicType type, bool needs_card_mark) { |
150 int offset_in_bytes = arrayOopDesc::base_offset_in_bytes(type); |
150 int offset_in_bytes = arrayOopDesc::base_offset_in_bytes(type); |
151 |
151 |
152 LIR_Address* addr; |
152 LIR_Address* addr; |
153 if (index_opr->is_constant()) { |
153 if (index_opr->is_constant()) { |
154 int elem_size = type2aelembytes[type]; |
154 int elem_size = type2aelembytes(type); |
155 addr = new LIR_Address(array_opr, |
155 addr = new LIR_Address(array_opr, |
156 offset_in_bytes + index_opr->as_jint() * elem_size, type); |
156 offset_in_bytes + index_opr->as_jint() * elem_size, type); |
157 } else { |
157 } else { |
158 addr = new LIR_Address(array_opr, |
158 addr = new LIR_Address(array_opr, |
159 index_opr, |
159 index_opr, |