equal
deleted
inserted
replaced
292 } |
292 } |
293 |
293 |
294 int Method::size(bool is_native) { |
294 int Method::size(bool is_native) { |
295 // If native, then include pointers for native_function and signature_handler |
295 // If native, then include pointers for native_function and signature_handler |
296 int extra_bytes = (is_native) ? 2*sizeof(address*) : 0; |
296 int extra_bytes = (is_native) ? 2*sizeof(address*) : 0; |
297 int extra_words = align_size_up(extra_bytes, BytesPerWord) / BytesPerWord; |
297 int extra_words = align_up(extra_bytes, BytesPerWord) / BytesPerWord; |
298 return align_metadata_size(header_size() + extra_words); |
298 return align_metadata_size(header_size() + extra_words); |
299 } |
299 } |
300 |
300 |
301 |
301 |
302 Symbol* Method::klass_name() const { |
302 Symbol* Method::klass_name() const { |