|
- // E03-S05: instance size and field offsets. A class starts with its
- // two-byte descriptor pointer; fields follow in declaration order with no
- // padding. boolean/byte/char are 1 byte, integer/word/class reference 2,
- // interface reference 4, and an array is element size times length.
- box size 35
- box.b offset 2
- box.ok offset 3
- box.c offset 4
- box.w offset 5
- box.i offset 7
- box.nums offset 9
- box.flags offset 15
- box.s offset 17
- box.next offset 21
- box.many offset 23
- box.kids offset 31
- empty size 2
|