Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/AbstractWriteNode.java @ 19396:7e2c87dae93e
Create static final NodeClass field named TYPE in Node subclasses.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 15:43:03 +0100 |
parents | c9bb0da795d4 |
children | 61d3cb8e1280 |
comparison
equal
deleted
inserted
replaced
19395:a306749d3e86 | 19396:7e2c87dae93e |
---|---|
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 @Input ValueNode value; | 35 @Input ValueNode value; |
35 @OptionalInput(InputType.State) FrameState stateAfter; | 36 @OptionalInput(InputType.State) FrameState stateAfter; |
36 @OptionalInput(InputType.Memory) Node lastLocationAccess; | 37 @OptionalInput(InputType.Memory) Node lastLocationAccess; |
37 | 38 |
38 protected final boolean initialization; | 39 protected final boolean initialization; |
62 */ | 63 */ |
63 public boolean isInitialization() { | 64 public boolean isInitialization() { |
64 return initialization; | 65 return initialization; |
65 } | 66 } |
66 | 67 |
67 public AbstractWriteNode(ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType) { | 68 protected AbstractWriteNode(NodeClass c, ValueNode object, ValueNode value, ValueNode location, BarrierType barrierType) { |
68 this(object, value, location, barrierType, false); | 69 this(c, object, value, location, barrierType, false); |
69 } | 70 } |
70 | 71 |
71 public AbstractWriteNode(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) { |
72 super(object, location, StampFactory.forVoid(), barrierType); | 73 super(c, object, location, StampFactory.forVoid(), barrierType); |
73 this.value = value; | 74 this.value = value; |
74 this.initialization = initialization; | 75 this.initialization = initialization; |
75 } | 76 } |
76 | 77 |
77 public AbstractWriteNode(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) { |
78 super(object, location, StampFactory.forVoid(), guard, barrierType, false, null); | 79 super(c, object, location, StampFactory.forVoid(), guard, barrierType, false, null); |
79 this.value = value; | 80 this.value = value; |
80 this.initialization = initialization; | 81 this.initialization = initialization; |
81 } | 82 } |
82 | 83 |
83 @Override | 84 @Override |