--- old/src/share/vm/ci/ciMethod.hpp 2009-10-28 20:02:20.361060284 +0100 +++ new/src/share/vm/ci/ciMethod.hpp 2009-10-28 20:02:20.252427290 +0100 @@ -38,6 +38,8 @@ CI_PACKAGE_ACCESS friend class ciEnv; friend class ciExceptionHandlerStream; + friend class ciBytecodeStream; + friend class ciMethodHandle; private: // General method information. @@ -251,4 +253,10 @@ // Print the name of this method in various incarnations. void print_name(outputStream* st = tty); void print_short_name(outputStream* st = tty); + + methodOop get_method_handle_target() { + klassOop receiver_limit_oop = NULL; + int flags = 0; + return MethodHandles::decode_method(get_oop(), receiver_limit_oop, flags); + } };