Mercurial > hg > truffle
diff src/share/vm/opto/subnode.hpp @ 17936:968a17f18337
8042786: Proper fix for 8032566
Summary: Check for overflow cases in range checks and collapse it if we can.
Reviewed-by: jrose, iveresov
author | kvn |
---|---|
date | Fri, 16 May 2014 12:05:14 -0700 |
parents | 55fb97c4c58d |
children | 52b4284cb496 5b8e0f84f00f |
line wrap: on
line diff
--- a/src/share/vm/opto/subnode.hpp Thu May 15 18:23:26 2014 -0400 +++ b/src/share/vm/opto/subnode.hpp Fri May 16 12:05:14 2014 -0700 @@ -50,6 +50,7 @@ // Compute a new Type for this node. Basically we just do the pre-check, // then call the virtual add() to set the type. virtual const Type *Value( PhaseTransform *phase ) const; + const Type* Value_common( PhaseTransform *phase ) const; // Supplied function returns the subtractend of the inputs. // This also type-checks the inputs for sanity. Guaranteed never to @@ -158,6 +159,7 @@ CmpUNode( Node *in1, Node *in2 ) : CmpNode(in1,in2) {} virtual int Opcode() const; virtual const Type *sub( const Type *, const Type * ) const; + const Type *Value( PhaseTransform *phase ) const; bool is_index_range_check() const; };