src/share/vm/interpreter/bytecodes.hpp

changeset 4313
beebba0acc11
parent 4037
da91efe96a93
child 6876
710a3c8b516e
child 7365
600c44255e5f
     1.1 --- a/src/share/vm/interpreter/bytecodes.hpp	Wed Nov 21 05:57:12 2012 -0800
     1.2 +++ b/src/share/vm/interpreter/bytecodes.hpp	Mon Nov 26 17:25:11 2012 -0800
     1.3 @@ -423,7 +423,9 @@
     1.4    static bool        is_zero_const  (Code code)    { return (code == _aconst_null || code == _iconst_0
     1.5                                                             || code == _fconst_0 || code == _dconst_0); }
     1.6    static bool        is_invoke      (Code code)    { return (_invokevirtual <= code && code <= _invokedynamic); }
     1.7 -
     1.8 +  static bool        has_receiver   (Code code)    { assert(is_invoke(code), "");  return code == _invokevirtual ||
     1.9 +                                                                                          code == _invokespecial ||
    1.10 +                                                                                          code == _invokeinterface; }
    1.11    static bool        has_optional_appendix(Code code) { return code == _invokedynamic || code == _invokehandle; }
    1.12  
    1.13    static int         compute_flags  (const char* format, int more_flags = 0);  // compute the flags

mercurial