comparison src/share/vm/interpreter/bytecodes.hpp @ 1570:de91a2f25c7e

6956164: nightly regressions from 6939207 Summary: Fix errors in 6939207. Reviewed-by: kvn
author jrose
date Thu, 27 May 2010 09:54:07 -0700
parents ab102d5d923e
children e9ff18c4ace7
comparison
equal deleted inserted replaced
1569:f9a202dd8899 1570:de91a2f25c7e
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); }