equal
deleted
inserted
replaced
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; |