Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardedValueNode.java @ 11880:9a747d8e0d0f
broadened types in Canonicalizable interface so that it can be moved to the com.oracle.graal.graph project (GRAAL-506)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 01 Oct 2013 20:32:47 +0200 |
parents | 1aed684853f6 |
children | da9db8331658 |
comparison
equal
deleted
inserted
replaced
11879:7e57add9c0d5 | 11880:9a747d8e0d0f |
---|---|
72 if (state != null && state.getState() == EscapeState.Virtual) { | 72 if (state != null && state.getState() == EscapeState.Virtual) { |
73 tool.replaceWithVirtual(state.getVirtualObject()); | 73 tool.replaceWithVirtual(state.getVirtualObject()); |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 public ValueNode canonical(CanonicalizerTool tool) { | 77 public Node canonical(CanonicalizerTool tool) { |
78 if (getGuard() == graph().start()) { | 78 if (getGuard() == graph().start()) { |
79 if (stamp().equals(object().stamp())) { | 79 if (stamp().equals(object().stamp())) { |
80 return object(); | 80 return object(); |
81 } else { | 81 } else { |
82 return graph().unique(new PiNode(object(), stamp())); | 82 return graph().unique(new PiNode(object(), stamp())); |