Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/AbstractWriteNode.java @ 19410:61d3cb8e1280
Add generic parameter to NodeClass. Change Graph#getNodes(Class) to Graph#getNodes(NodeClass).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 17:47:43 +0100 |
parents | 7e2c87dae93e |
children | 880717e44675 |
comparison
equal
deleted
inserted
replaced
19409:a16f1bbe2965 | 19410:61d3cb8e1280 |
---|---|
29 import com.oracle.graal.nodes.*; | 29 import com.oracle.graal.nodes.*; |
30 | 30 |
31 @NodeInfo(allowedUsageTypes = {InputType.Memory}) | 31 @NodeInfo(allowedUsageTypes = {InputType.Memory}) |
32 public abstract class AbstractWriteNode extends FixedAccessNode implements StateSplit, MemoryCheckpoint.Single, MemoryAccess, GuardingNode { | 32 public abstract class AbstractWriteNode extends FixedAccessNode implements StateSplit, MemoryCheckpoint.Single, MemoryAccess, GuardingNode { |
33 | 33 |
34 public static final NodeClass TYPE = NodeClass.get(AbstractWriteNode.class); | 34 public static final NodeClass<AbstractWriteNode> TYPE = NodeClass.get(AbstractWriteNode.class); |
35 @Input ValueNode value; | 35 @Input ValueNode value; |
36 @OptionalInput(InputType.State) FrameState stateAfter; | 36 @OptionalInput(InputType.State) FrameState stateAfter; |
37 @OptionalInput(InputType.Memory) Node lastLocationAccess; | 37 @OptionalInput(InputType.Memory) Node lastLocationAccess; |
38 | 38 |
39 protected final boolean initialization; | 39 protected final boolean initialization; |
63 */ | 63 */ |
64 public boolean isInitialization() { | 64 public boolean isInitialization() { |
65 return initialization; | 65 return initialization; |
66 } | 66 } |
67 | 67 |
68 protected AbstractWriteNode(NodeClass c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType) { | 68 protected AbstractWriteNode(NodeClass<?> c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType) { |
69 this(c, object, value, location, barrierType, false); | 69 this(c, object, value, location, barrierType, false); |
70 } | 70 } |
71 | 71 |
72 protected AbstractWriteNode(NodeClass c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType, boolean initialization) { | 72 protected AbstractWriteNode(NodeClass<?> c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType, boolean initialization) { |
73 super(c, object, location, StampFactory.forVoid(), barrierType); | 73 super(c, object, location, StampFactory.forVoid(), barrierType); |
74 this.value = value; | 74 this.value = value; |
75 this.initialization = initialization; | 75 this.initialization = initialization; |
76 } | 76 } |
77 | 77 |
78 protected AbstractWriteNode(NodeClass c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType, GuardingNode guard, boolean initialization) { | 78 protected AbstractWriteNode(NodeClass<?> c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType, GuardingNode guard, boolean initialization) { |
79 super(c, object, location, StampFactory.forVoid(), guard, barrierType, false, null); | 79 super(c, object, location, StampFactory.forVoid(), guard, barrierType, false, null); |
80 this.value = value; | 80 this.value = value; |
81 this.initialization = initialization; | 81 this.initialization = initialization; |
82 } | 82 } |
83 | 83 |