hotspot/src/share/vm/interpreter/bytecodes.hpp
changeset 5693 3015c564fcbc
parent 5688 9052dc91ea67
child 5702 201c5cde25bb
equal deleted inserted replaced
5692:5ab61a141f2f 5693:3015c564fcbc
   351   static bool        is_defined     (int  code)    { return 0 <= code && code < number_of_codes && flags(code, false) != 0; }
   351   static bool        is_defined     (int  code)    { return 0 <= code && code < number_of_codes && flags(code, false) != 0; }
   352   static bool        wide_is_defined(int  code)    { return is_defined(code) && flags(code, true) != 0; }
   352   static bool        wide_is_defined(int  code)    { return is_defined(code) && flags(code, true) != 0; }
   353   static const char* name           (Code code)    { check(code);      return _name          [code]; }
   353   static const char* name           (Code code)    { check(code);      return _name          [code]; }
   354   static BasicType   result_type    (Code code)    { check(code);      return _result_type   [code]; }
   354   static BasicType   result_type    (Code code)    { check(code);      return _result_type   [code]; }
   355   static int         depth          (Code code)    { check(code);      return _depth         [code]; }
   355   static int         depth          (Code code)    { check(code);      return _depth         [code]; }
   356   static int         length_for     (Code code)    { check(code);      return _lengths       [code] & 0xF; }
   356   // Note: Length functions must return <=0 for invalid bytecodes.
   357   static int         wide_length_for(Code code)    { check(code);      return _lengths       [code] >> 4; }
   357   // Calling check(code) in length functions would throw an unwanted assert.
       
   358   static int         length_for     (Code code)    { /*no check*/      return _lengths       [code] & 0xF; }
       
   359   static int         wide_length_for(Code code)    { /*no check*/      return _lengths       [code] >> 4; }
   358   static bool        can_trap       (Code code)    { check(code);      return has_all_flags(code, _bc_can_trap, false); }
   360   static bool        can_trap       (Code code)    { check(code);      return has_all_flags(code, _bc_can_trap, false); }
   359   static Code        java_code      (Code code)    { check(code);      return _java_code     [code]; }
   361   static Code        java_code      (Code code)    { check(code);      return _java_code     [code]; }
   360   static bool        can_rewrite    (Code code)    { check(code);      return has_all_flags(code, _bc_can_rewrite, false); }
   362   static bool        can_rewrite    (Code code)    { check(code);      return has_all_flags(code, _bc_can_rewrite, false); }
   361   static bool        native_byte_order(Code code)  { check(code);      return has_all_flags(code, _fmt_has_nbo, false); }
   363   static bool        native_byte_order(Code code)  { check(code);      return has_all_flags(code, _fmt_has_nbo, false); }
   362   static bool        uses_cp_cache  (Code code)    { check(code);      return has_all_flags(code, _fmt_has_j, false); }
   364   static bool        uses_cp_cache  (Code code)    { check(code);      return has_all_flags(code, _fmt_has_j, false); }