hotspot/src/share/vm/interpreter/bytecodes.hpp
changeset 14621 fd9265ab0f67
parent 13728 882756847a04
child 24322 c2978d1578e3
--- a/hotspot/src/share/vm/interpreter/bytecodes.hpp	Wed Nov 21 05:57:12 2012 -0800
+++ b/hotspot/src/share/vm/interpreter/bytecodes.hpp	Mon Nov 26 17:25:11 2012 -0800
@@ -423,7 +423,9 @@
   static bool        is_zero_const  (Code code)    { return (code == _aconst_null || code == _iconst_0
                                                            || code == _fconst_0 || code == _dconst_0); }
   static bool        is_invoke      (Code code)    { return (_invokevirtual <= code && code <= _invokedynamic); }
-
+  static bool        has_receiver   (Code code)    { assert(is_invoke(code), "");  return code == _invokevirtual ||
+                                                                                          code == _invokespecial ||
+                                                                                          code == _invokeinterface; }
   static bool        has_optional_appendix(Code code) { return code == _invokedynamic || code == _invokehandle; }
 
   static int         compute_flags  (const char* format, int more_flags = 0);  // compute the flags