hotspot/src/share/vm/ci/ciField.hpp
changeset 202 dc13bf0e5d5d
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
equal deleted inserted replaced
201:7893b7ce2d8d 202:dc13bf0e5d5d
   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;