Mercurial > hg > truffle
diff src/share/vm/interpreter/bytecodes.hpp @ 7212:291ffc492eb6
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 14 Dec 2012 14:35:13 +0100 |
parents | beebba0acc11 |
children | 600c44255e5f |
line wrap: on
line diff
--- a/src/share/vm/interpreter/bytecodes.hpp Fri Dec 14 10:20:54 2012 +0100 +++ b/src/share/vm/interpreter/bytecodes.hpp Fri Dec 14 14:35:13 2012 +0100 @@ -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