Mercurial > hg > truffle
comparison src/share/vm/c1/c1_LIR.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 |
comparison
equal
deleted
inserted
replaced
28:67914967a4b5 | 29:d5fc211aea19 |
---|---|
103 | 103 |
104 //--------------------------------------------------- | 104 //--------------------------------------------------- |
105 | 105 |
106 | 106 |
107 LIR_Address::Scale LIR_Address::scale(BasicType type) { | 107 LIR_Address::Scale LIR_Address::scale(BasicType type) { |
108 int elem_size = type2aelembytes[type]; | 108 int elem_size = type2aelembytes(type); |
109 switch (elem_size) { | 109 switch (elem_size) { |
110 case 1: return LIR_Address::times_1; | 110 case 1: return LIR_Address::times_1; |
111 case 2: return LIR_Address::times_2; | 111 case 2: return LIR_Address::times_2; |
112 case 4: return LIR_Address::times_4; | 112 case 4: return LIR_Address::times_4; |
113 case 8: return LIR_Address::times_8; | 113 case 8: return LIR_Address::times_8; |