equal
deleted
inserted
replaced
226 } |
226 } |
227 static ByteSize bci_offset() { |
227 static ByteSize bci_offset() { |
228 return byte_offset_of(DataLayout, _header._struct._bci); |
228 return byte_offset_of(DataLayout, _header._struct._bci); |
229 } |
229 } |
230 static ByteSize cell_offset(int index) { |
230 static ByteSize cell_offset(int index) { |
231 return byte_offset_of(DataLayout, _cells[index]); |
231 return byte_offset_of(DataLayout, _cells) + in_ByteSize(index * cell_size); |
232 } |
232 } |
233 // Return a value which, when or-ed as a byte into _flags, sets the flag. |
233 // Return a value which, when or-ed as a byte into _flags, sets the flag. |
234 static int flag_number_to_byte_constant(int flag_number) { |
234 static int flag_number_to_byte_constant(int flag_number) { |
235 assert(0 <= flag_number && flag_number < flag_limit, "oob"); |
235 assert(0 <= flag_number && flag_number < flag_limit, "oob"); |
236 DataLayout temp; temp.set_header(0); |
236 DataLayout temp; temp.set_header(0); |