diff src/share/vm/interpreter/bytecodes.hpp @ 3897:de847cac9235

7078382: JSR 292: don't count method handle adapters against inlining budgets Reviewed-by: kvn, never
author twisti
date Wed, 31 Aug 2011 01:40:45 -0700
parents b92c45f2bc75
children 1d7922586cf6
line wrap: on
line diff
--- a/src/share/vm/interpreter/bytecodes.hpp	Tue Aug 30 19:01:58 2011 -0700
+++ b/src/share/vm/interpreter/bytecodes.hpp	Wed Aug 31 01:40:45 2011 -0700
@@ -419,6 +419,8 @@
 
   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 int         compute_flags  (const char* format, int more_flags = 0);  // compute the flags
   static int         flags          (int code, bool is_wide) {
     assert(code == (u_char)code, "must be a byte");