comparison src/share/vm/oops/methodKlass.cpp @ 1507:cd5dbf694d45

6939134: JSR 292 adjustments to method handle invocation Summary: split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces Reviewed-by: twisti
author jrose
date Sat, 01 May 2010 02:42:18 -0700
parents 4e6abf09f540
children c18cbe5936b8 beb77f0d41b3
comparison
equal deleted inserted replaced
1506:2338d41fbd81 1507:cd5dbf694d45
234 void methodKlass::oop_print_on(oop obj, outputStream* st) { 234 void methodKlass::oop_print_on(oop obj, outputStream* st) {
235 ResourceMark rm; 235 ResourceMark rm;
236 assert(obj->is_method(), "must be method"); 236 assert(obj->is_method(), "must be method");
237 Klass::oop_print_on(obj, st); 237 Klass::oop_print_on(obj, st);
238 methodOop m = methodOop(obj); 238 methodOop m = methodOop(obj);
239 // get the effect of PrintOopAddress, always, for methods:
240 st->print (" - this oop: "INTPTR_FORMAT, (intptr_t)m);
239 st->print (" - method holder: "); m->method_holder()->print_value_on(st); st->cr(); 241 st->print (" - method holder: "); m->method_holder()->print_value_on(st); st->cr();
240 st->print (" - constants: " INTPTR_FORMAT, " ", (address)m->constants()); 242 st->print (" - constants: "INTPTR_FORMAT" ", (address)m->constants());
241 m->constants()->print_value_on(st); st->cr(); 243 m->constants()->print_value_on(st); st->cr();
242 st->print (" - access: 0x%x ", m->access_flags().as_int()); m->access_flags().print_on(st); st->cr(); 244 st->print (" - access: 0x%x ", m->access_flags().as_int()); m->access_flags().print_on(st); st->cr();
243 st->print (" - name: "); m->name()->print_value_on(st); st->cr(); 245 st->print (" - name: "); m->name()->print_value_on(st); st->cr();
244 st->print (" - signature: "); m->signature()->print_value_on(st); st->cr(); 246 st->print (" - signature: "); m->signature()->print_value_on(st); st->cr();
245 st->print_cr(" - max stack: %d", m->max_stack()); 247 st->print_cr(" - max stack: %d", m->max_stack());
246 st->print_cr(" - max locals: %d", m->max_locals()); 248 st->print_cr(" - max locals: %d", m->max_locals());
247 st->print_cr(" - size of params: %d", m->size_of_parameters()); 249 st->print_cr(" - size of params: %d", m->size_of_parameters());
248 st->print_cr(" - method size: %d", m->method_size()); 250 st->print_cr(" - method size: %d", m->method_size());
251 if (m->intrinsic_id() != vmIntrinsics::_none)
252 st->print_cr(" - intrinsic id: %d %s", m->intrinsic_id(), vmIntrinsics::name_at(m->intrinsic_id()));
253 if (m->highest_tier_compile() != CompLevel_none)
254 st->print_cr(" - highest tier: %d", m->highest_tier_compile());
249 st->print_cr(" - vtable index: %d", m->_vtable_index); 255 st->print_cr(" - vtable index: %d", m->_vtable_index);
250 st->print_cr(" - i2i entry: " INTPTR_FORMAT, m->interpreter_entry()); 256 st->print_cr(" - i2i entry: " INTPTR_FORMAT, m->interpreter_entry());
251 st->print_cr(" - adapter: " INTPTR_FORMAT, m->adapter()); 257 st->print_cr(" - adapter: " INTPTR_FORMAT, m->adapter());
252 st->print_cr(" - compiled entry " INTPTR_FORMAT, m->from_compiled_entry()); 258 st->print_cr(" - compiled entry " INTPTR_FORMAT, m->from_compiled_entry());
253 st->print_cr(" - code size: %d", m->code_size()); 259 st->print_cr(" - code size: %d", m->code_size());