Mercurial > hg > graal-compiler
diff src/share/vm/opto/compile.hpp @ 14440:41b780b43b74
8029015: PPC64 (part 216): opto: trap based null and range checks
Summary: On PPC64 use tdi instruction that does a compare and raises SIGTRAP for NULL and range checks.
Reviewed-by: kvn
author | goetz |
---|---|
date | Wed, 27 Nov 2013 16:16:21 -0800 |
parents | 4cdf4f71177d |
children | 1174c8abbdb6 |
line wrap: on
line diff
--- a/src/share/vm/opto/compile.hpp Tue Nov 26 18:38:19 2013 -0800 +++ b/src/share/vm/opto/compile.hpp Wed Nov 27 16:16:21 2013 -0800 @@ -855,6 +855,11 @@ ciMethodData* logmd = NULL); // Report if there were too many recompiles at a method and bci. bool too_many_recompiles(ciMethod* method, int bci, Deoptimization::DeoptReason reason); + // Return a bitset with the reasons where deoptimization is allowed, + // i.e., where there were not too many uncommon traps. + int _allowed_reasons; + int allowed_deopt_reasons() { return _allowed_reasons; } + void set_allowed_deopt_reasons(); // Parsing, optimization PhaseGVN* initial_gvn() { return _initial_gvn; }