Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/OrNode.java @ 11265:ef6915cf1e59
Add illegal stamp
Remove ValueNode.(object|integer)Stamp: use explicit tests/casts
Fix ObjectStamp.join
Introduce ObjectStamp.castTo
Add some tests for ObjectStamp.join
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 08 Aug 2013 18:17:47 +0200 |
parents | 4a6646d8eb87 |
children | 2ad1435489d1 |
comparison
equal
deleted
inserted
replaced
11264:7894695caee6 | 11265:ef6915cf1e59 |
---|---|
35 super(kind, x, y); | 35 super(kind, x, y); |
36 } | 36 } |
37 | 37 |
38 @Override | 38 @Override |
39 public boolean inferStamp() { | 39 public boolean inferStamp() { |
40 return updateStamp(StampTool.or(x().integerStamp(), y().integerStamp())); | 40 return updateStamp(StampTool.or(x().stamp(), y().stamp())); |
41 } | 41 } |
42 | 42 |
43 @Override | 43 @Override |
44 public ValueNode canonical(CanonicalizerTool tool) { | 44 public ValueNode canonical(CanonicalizerTool tool) { |
45 if (x() == y()) { | 45 if (x() == y()) { |