Mercurial > hg > truffle
comparison src/cpu/sparc/vm/c1_LIRGenerator_sparc.cpp @ 29:d5fc211aea19
6633953: type2aelembytes{T_ADDRESS} should be 8 bytes in 64 bit VM
Summary: T_ADDRESS size is defined as 'int' size (4 bytes) but C2 use it for raw pointers and as memory type for StoreP and LoadP nodes.
Reviewed-by: jrose
author | kvn |
---|---|
date | Mon, 25 Feb 2008 15:05:44 -0800 |
parents | a61af66fc99e |
children | d1605aabd0a1 37f87013dfd8 |
comparison
equal
deleted
inserted
replaced
28:67914967a4b5 | 29:d5fc211aea19 |
---|---|
177 } | 177 } |
178 | 178 |
179 | 179 |
180 LIR_Address* LIRGenerator::emit_array_address(LIR_Opr array_opr, LIR_Opr index_opr, | 180 LIR_Address* LIRGenerator::emit_array_address(LIR_Opr array_opr, LIR_Opr index_opr, |
181 BasicType type, bool needs_card_mark) { | 181 BasicType type, bool needs_card_mark) { |
182 int elem_size = type2aelembytes[type]; | 182 int elem_size = type2aelembytes(type); |
183 int shift = exact_log2(elem_size); | 183 int shift = exact_log2(elem_size); |
184 | 184 |
185 LIR_Opr base_opr; | 185 LIR_Opr base_opr; |
186 int offset = arrayOopDesc::base_offset_in_bytes(type); | 186 int offset = arrayOopDesc::base_offset_in_bytes(type); |
187 | 187 |