hotspot/src/share/vm/interpreter/bytecode.hpp
changeset 10979 c25dd872c62f
parent 8107 78e5bd944384
child 13391 30245956af37
--- a/hotspot/src/share/vm/interpreter/bytecode.hpp	Mon Oct 31 15:52:11 2011 -0700
+++ b/hotspot/src/share/vm/interpreter/bytecode.hpp	Thu Nov 03 01:43:26 2011 -0700
@@ -234,6 +234,13 @@
                                                           is_invokespecial()   ||
                                                           is_invokedynamic(); }
 
+  bool is_method_handle_invoke() const {
+    return (is_invokedynamic() ||
+            (is_invokevirtual() &&
+             method()->constants()->klass_ref_at_noresolve(index()) == vmSymbols::java_lang_invoke_MethodHandle() &&
+             methodOopDesc::is_method_handle_invoke_name(name())));
+  }
+
   // Helper to skip verification.   Used is_valid() to check if the result is really an invoke
   inline friend Bytecode_invoke Bytecode_invoke_check(methodHandle method, int bci);
 };