Mercurial > hg > truffle
diff src/share/vm/interpreter/bytecodes.hpp @ 20771:9fa3bf3043a2
Merge
author | asaha |
---|---|
date | Wed, 26 Nov 2014 08:14:21 -0800 |
parents | 600c44255e5f |
children |
line wrap: on
line diff
--- a/src/share/vm/interpreter/bytecodes.hpp Wed Nov 19 12:52:56 2014 -0800 +++ b/src/share/vm/interpreter/bytecodes.hpp Wed Nov 26 08:14:21 2014 -0800 @@ -420,8 +420,10 @@ static bool is_astore (Code code) { return (code == _astore || code == _astore_0 || code == _astore_1 || code == _astore_2 || code == _astore_3); } + static bool is_const (Code code) { return (_aconst_null <= code && code <= _ldc2_w); } static bool is_zero_const (Code code) { return (code == _aconst_null || code == _iconst_0 || code == _fconst_0 || code == _dconst_0); } + static bool is_return (Code code) { return (_ireturn <= code && code <= _return); } 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 ||