hotspot/src/share/vm/oops/methodDataOop.hpp
changeset 8652 209b2ce94ce5
parent 8334 9c373a57eb31
child 9446 748a37b25d10
equal deleted inserted replaced
8651:81b517a9249f 8652:209b2ce94ce5
   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);