Mercurial > hg > truffle
diff src/share/vm/oops/methodKlass.cpp @ 710:e5b0439ef4ae
6655638: dynamic languages need method handles
Summary: initial implementation, with known omissions (x86/64, sparc, compiler optim., c-oops, C++ interp.)
Reviewed-by: kvn, twisti, never
author | jrose |
---|---|
date | Wed, 08 Apr 2009 10:56:49 -0700 |
parents | c89f86385056 |
children | 75596850f863 |
line wrap: on
line diff
--- a/src/share/vm/oops/methodKlass.cpp Wed Apr 08 00:12:59 2009 -0700 +++ b/src/share/vm/oops/methodKlass.cpp Wed Apr 08 10:56:49 2009 -0700 @@ -298,7 +298,11 @@ m->code()->print_value_on(st); st->cr(); } - if (m->is_native()) { + if (m->is_method_handle_invoke()) { + st->print_cr(" - invoke method type: " INTPTR_FORMAT, (address) m->method_handle_type()); + // m is classified as native, but it does not have an interesting + // native_function or signature handler + } else if (m->is_native()) { st->print_cr(" - native function: " INTPTR_FORMAT, m->native_function()); st->print_cr(" - signature handler: " INTPTR_FORMAT, m->signature_handler()); }