Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciField.hpp @ 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 |
---|---|
100 | 100 |
101 // How is this field actually stored in memory? | 101 // How is this field actually stored in memory? |
102 BasicType layout_type() { return type2field[(_type == NULL) ? T_OBJECT : _type->basic_type()]; } | 102 BasicType layout_type() { return type2field[(_type == NULL) ? T_OBJECT : _type->basic_type()]; } |
103 | 103 |
104 // How big is this field in memory? | 104 // How big is this field in memory? |
105 int size_in_bytes() { return type2aelembytes[layout_type()]; } | 105 int size_in_bytes() { return type2aelembytes(layout_type()); } |
106 | 106 |
107 // What is the offset of this field? | 107 // What is the offset of this field? |
108 int offset() { | 108 int offset() { |
109 assert(_offset >= 1, "illegal call to offset()"); | 109 assert(_offset >= 1, "illegal call to offset()"); |
110 return _offset; | 110 return _offset; |