Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/methodDataOop.hpp @ 2333:f767174aac14
7021653: Parfait issue in hotspot/src/share/vm/oops/methodDataOops.hpp
Summary: Fix compilation error(s)
Reviewed-by: kvn, phh, jcoomes, dholmes
author | coleenp |
---|---|
date | Thu, 03 Mar 2011 19:53:03 -0500 |
parents | a97fd181b813 |
children | bad7ecd0b6ed |
comparison
equal
deleted
inserted
replaced
2332:fbbeec6dad2d | 2333:f767174aac14 |
---|---|
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); |