Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/ObjectEqualsNode.java @ 15260:61363577a184
Move static helpers from ObjectStamp to StampTool.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Tue, 22 Apr 2014 14:15:24 +0200 |
parents | 97eed257999b |
children | 7766f486f5d6 |
comparison
equal
deleted
inserted
replaced
15259:d90e5c22ba55 | 15260:61363577a184 |
---|---|
59 public Node canonical(CanonicalizerTool tool) { | 59 public Node canonical(CanonicalizerTool tool) { |
60 if (x() == y()) { | 60 if (x() == y()) { |
61 return LogicConstantNode.tautology(graph()); | 61 return LogicConstantNode.tautology(graph()); |
62 } | 62 } |
63 | 63 |
64 if (ObjectStamp.isObjectAlwaysNull(x())) { | 64 if (StampTool.isObjectAlwaysNull(x())) { |
65 return graph().unique(new IsNullNode(y())); | 65 return graph().unique(new IsNullNode(y())); |
66 } else if (ObjectStamp.isObjectAlwaysNull(y())) { | 66 } else if (StampTool.isObjectAlwaysNull(y())) { |
67 return graph().unique(new IsNullNode(x())); | 67 return graph().unique(new IsNullNode(x())); |
68 } | 68 } |
69 if (x().stamp().alwaysDistinct(y().stamp())) { | 69 if (x().stamp().alwaysDistinct(y().stamp())) { |
70 return LogicConstantNode.contradiction(graph()); | 70 return LogicConstantNode.contradiction(graph()); |
71 } | 71 } |