Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ProxyNode.java @ 18993:480bd3b1adcd
Rename BeginNode => AbstractBeginNode.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 28 Jan 2015 00:50:31 +0100 |
parents | f57d86eb036f |
children | 7e2c87dae93e |
comparison
equal
deleted
inserted
replaced
18992:b1c03c2bfa40 | 18993:480bd3b1adcd |
---|---|
34 * live on entry to the loop) and is (potentially) used after the loop. | 34 * live on entry to the loop) and is (potentially) used after the loop. |
35 */ | 35 */ |
36 @NodeInfo | 36 @NodeInfo |
37 public abstract class ProxyNode extends FloatingNode implements IterableNodeType, ValueNumberable { | 37 public abstract class ProxyNode extends FloatingNode implements IterableNodeType, ValueNumberable { |
38 | 38 |
39 @Input(InputType.Association) BeginNode proxyPoint; | 39 @Input(InputType.Association) AbstractBeginNode proxyPoint; |
40 | 40 |
41 public ProxyNode(Stamp stamp, BeginNode proxyPoint) { | 41 public ProxyNode(Stamp stamp, AbstractBeginNode proxyPoint) { |
42 super(stamp); | 42 super(stamp); |
43 assert proxyPoint != null; | 43 assert proxyPoint != null; |
44 this.proxyPoint = proxyPoint; | 44 this.proxyPoint = proxyPoint; |
45 } | 45 } |
46 | 46 |
47 public abstract ValueNode value(); | 47 public abstract ValueNode value(); |
48 | 48 |
49 public BeginNode proxyPoint() { | 49 public AbstractBeginNode proxyPoint() { |
50 return proxyPoint; | 50 return proxyPoint; |
51 } | 51 } |
52 | 52 |
53 @Override | 53 @Override |
54 public boolean verify() { | 54 public boolean verify() { |
56 assert proxyPoint != null; | 56 assert proxyPoint != null; |
57 assert !(value() instanceof ProxyNode) || ((ProxyNode) value()).proxyPoint != proxyPoint; | 57 assert !(value() instanceof ProxyNode) || ((ProxyNode) value()).proxyPoint != proxyPoint; |
58 return super.verify(); | 58 return super.verify(); |
59 } | 59 } |
60 | 60 |
61 public static ValueProxyNode forValue(ValueNode value, BeginNode exit, StructuredGraph graph) { | 61 public static ValueProxyNode forValue(ValueNode value, AbstractBeginNode exit, StructuredGraph graph) { |
62 return graph.unique(new ValueProxyNode(value, exit)); | 62 return graph.unique(new ValueProxyNode(value, exit)); |
63 } | 63 } |
64 | 64 |
65 public static GuardProxyNode forGuard(GuardingNode value, BeginNode exit, StructuredGraph graph) { | 65 public static GuardProxyNode forGuard(GuardingNode value, AbstractBeginNode exit, StructuredGraph graph) { |
66 return graph.unique(new GuardProxyNode(value, exit)); | 66 return graph.unique(new GuardProxyNode(value, exit)); |
67 } | 67 } |
68 } | 68 } |