Mercurial > hg > graal-compiler
diff src/share/vm/opto/machnode.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 | 15120a36272d |
children | 492e67693373 |
line wrap: on
line diff
--- a/src/share/vm/opto/machnode.hpp Tue Nov 26 18:38:19 2013 -0800 +++ b/src/share/vm/opto/machnode.hpp Wed Nov 27 16:16:21 2013 -0800 @@ -315,6 +315,9 @@ static const Pipeline *pipeline_class(); virtual const Pipeline *pipeline() const; + // Returns true if this node is a check that can be implemented with a trap. + virtual bool is_TrapBasedCheckNode() const { return false; } + #ifndef PRODUCT virtual const char *Name() const = 0; // Machine-specific name virtual void dump_spec(outputStream *st) const; // Print per-node info