--- 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