Mercurial > hg > truffle
diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardPhiNode.java @ 16550:af52fd81a7a3
initializing constructors for GuardPhiNode and MemoryPhiNode
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Thu, 17 Jul 2014 14:26:10 +0200 |
parents | 6ce37ad3ea47 |
children | cbd42807a31f |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardPhiNode.java Thu Jul 17 14:25:41 2014 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardPhiNode.java Thu Jul 17 14:26:10 2014 +0200 @@ -32,10 +32,16 @@ @NodeInfo(nameTemplate = "GuardPhi({i#values})", allowedUsageTypes = {InputType.Guard}) public class GuardPhiNode extends PhiNode implements GuardingNode { - @OptionalInput(InputType.Guard) final NodeInputList<ValueNode> values = new NodeInputList<>(this); + @OptionalInput(InputType.Guard) final NodeInputList<ValueNode> values; public GuardPhiNode(MergeNode merge) { super(StampFactory.forVoid(), merge); + this.values = new NodeInputList<>(this); + } + + public GuardPhiNode(MergeNode merge, ValueNode[] values) { + super(StampFactory.forVoid(), merge); + this.values = new NodeInputList<>(this, values); } @Override