comparison src/share/vm/oops/methodKlass.cpp @ 665:c89f86385056

6814659: separable cleanups and subroutines for 6655638 Summary: preparatory but separable changes for method handles Reviewed-by: kvn, never
author jrose
date Fri, 20 Mar 2009 23:19:36 -0700
parents a61af66fc99e
children e5b0439ef4ae
comparison
equal deleted inserted replaced
647:bd441136a5ce 665:c89f86385056
1 /* 1 /*
2 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
245 st->print_cr(" - max stack: %d", m->max_stack()); 245 st->print_cr(" - max stack: %d", m->max_stack());
246 st->print_cr(" - max locals: %d", m->max_locals()); 246 st->print_cr(" - max locals: %d", m->max_locals());
247 st->print_cr(" - size of params: %d", m->size_of_parameters()); 247 st->print_cr(" - size of params: %d", m->size_of_parameters());
248 st->print_cr(" - method size: %d", m->method_size()); 248 st->print_cr(" - method size: %d", m->method_size());
249 st->print_cr(" - vtable index: %d", m->_vtable_index); 249 st->print_cr(" - vtable index: %d", m->_vtable_index);
250 st->print_cr(" - i2i entry: " INTPTR_FORMAT, m->interpreter_entry());
251 st->print_cr(" - adapter: " INTPTR_FORMAT, m->adapter());
252 st->print_cr(" - compiled entry " INTPTR_FORMAT, m->from_compiled_entry());
250 st->print_cr(" - code size: %d", m->code_size()); 253 st->print_cr(" - code size: %d", m->code_size());
251 st->print_cr(" - code start: " INTPTR_FORMAT, m->code_base()); 254 if (m->code_size() != 0) {
252 st->print_cr(" - code end (excl): " INTPTR_FORMAT, m->code_base() + m->code_size()); 255 st->print_cr(" - code start: " INTPTR_FORMAT, m->code_base());
256 st->print_cr(" - code end (excl): " INTPTR_FORMAT, m->code_base() + m->code_size());
257 }
253 if (m->method_data() != NULL) { 258 if (m->method_data() != NULL) {
254 st->print_cr(" - method data: " INTPTR_FORMAT, (address)m->method_data()); 259 st->print_cr(" - method data: " INTPTR_FORMAT, (address)m->method_data());
255 } 260 }
256 st->print_cr(" - checked ex length: %d", m->checked_exceptions_length()); 261 st->print_cr(" - checked ex length: %d", m->checked_exceptions_length());
257 if (m->checked_exceptions_length() > 0) { 262 if (m->checked_exceptions_length() > 0) {
290 } 295 }
291 if (m->code() != NULL) { 296 if (m->code() != NULL) {
292 st->print (" - compiled code: "); 297 st->print (" - compiled code: ");
293 m->code()->print_value_on(st); 298 m->code()->print_value_on(st);
294 st->cr(); 299 st->cr();
300 }
301 if (m->is_native()) {
302 st->print_cr(" - native function: " INTPTR_FORMAT, m->native_function());
303 st->print_cr(" - signature handler: " INTPTR_FORMAT, m->signature_handler());
295 } 304 }
296 } 305 }
297 306
298 307
299 void methodKlass::oop_print_value_on(oop obj, outputStream* st) { 308 void methodKlass::oop_print_value_on(oop obj, outputStream* st) {