mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6939134: JSR 292 adjustments to method handle invocation
Split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces Reviewed-by: twisti
This commit is contained in:
parent
0211f9703a
commit
4eb75c2df3
29 changed files with 413 additions and 233 deletions
|
@ -236,8 +236,10 @@ void methodKlass::oop_print_on(oop obj, outputStream* st) {
|
|||
assert(obj->is_method(), "must be method");
|
||||
Klass::oop_print_on(obj, st);
|
||||
methodOop m = methodOop(obj);
|
||||
// get the effect of PrintOopAddress, always, for methods:
|
||||
st->print (" - this oop: "INTPTR_FORMAT, (intptr_t)m);
|
||||
st->print (" - method holder: "); m->method_holder()->print_value_on(st); st->cr();
|
||||
st->print (" - constants: " INTPTR_FORMAT, " ", (address)m->constants());
|
||||
st->print (" - constants: "INTPTR_FORMAT" ", (address)m->constants());
|
||||
m->constants()->print_value_on(st); st->cr();
|
||||
st->print (" - access: 0x%x ", m->access_flags().as_int()); m->access_flags().print_on(st); st->cr();
|
||||
st->print (" - name: "); m->name()->print_value_on(st); st->cr();
|
||||
|
@ -246,6 +248,10 @@ void methodKlass::oop_print_on(oop obj, outputStream* st) {
|
|||
st->print_cr(" - max locals: %d", m->max_locals());
|
||||
st->print_cr(" - size of params: %d", m->size_of_parameters());
|
||||
st->print_cr(" - method size: %d", m->method_size());
|
||||
if (m->intrinsic_id() != vmIntrinsics::_none)
|
||||
st->print_cr(" - intrinsic id: %d %s", m->intrinsic_id(), vmIntrinsics::name_at(m->intrinsic_id()));
|
||||
if (m->highest_tier_compile() != CompLevel_none)
|
||||
st->print_cr(" - highest tier: %d", m->highest_tier_compile());
|
||||
st->print_cr(" - vtable index: %d", m->_vtable_index);
|
||||
st->print_cr(" - i2i entry: " INTPTR_FORMAT, m->interpreter_entry());
|
||||
st->print_cr(" - adapter: " INTPTR_FORMAT, m->adapter());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue