Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/FixedAccessNode.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 |
---|---|
31 * Accesses a value at an memory address specified by an {@linkplain #object object} and a | 31 * Accesses a value at an memory address specified by an {@linkplain #object object} and a |
32 * {@linkplain #accessLocation() location}. The access does not include a null check on the object. | 32 * {@linkplain #accessLocation() location}. The access does not include a null check on the object. |
33 */ | 33 */ |
34 @NodeInfo | 34 @NodeInfo |
35 public abstract class FixedAccessNode extends DeoptimizingFixedWithNextNode implements Access { | 35 public abstract class FixedAccessNode extends DeoptimizingFixedWithNextNode implements Access { |
36 public static final NodeClass TYPE = NodeClass.get(FixedAccessNode.class); | 36 public static final NodeClass<FixedAccessNode> TYPE = NodeClass.get(FixedAccessNode.class); |
37 | 37 |
38 @OptionalInput(InputType.Guard) protected GuardingNode guard; | 38 @OptionalInput(InputType.Guard) protected GuardingNode guard; |
39 @Input protected ValueNode object; | 39 @Input protected ValueNode object; |
40 @Input(InputType.Association) protected ValueNode location; | 40 @Input(InputType.Association) protected ValueNode location; |
41 protected boolean nullCheck; | 41 protected boolean nullCheck; |
64 | 64 |
65 public void setNullCheck(boolean check) { | 65 public void setNullCheck(boolean check) { |
66 this.nullCheck = check; | 66 this.nullCheck = check; |
67 } | 67 } |
68 | 68 |
69 protected FixedAccessNode(NodeClass c, ValueNode object, ValueNode location, Stamp stamp) { | 69 protected FixedAccessNode(NodeClass<?> c, ValueNode object, ValueNode location, Stamp stamp) { |
70 this(c, object, location, stamp, BarrierType.NONE); | 70 this(c, object, location, stamp, BarrierType.NONE); |
71 } | 71 } |
72 | 72 |
73 protected FixedAccessNode(NodeClass c, ValueNode object, ValueNode location, Stamp stamp, BarrierType barrierType) { | 73 protected FixedAccessNode(NodeClass<?> c, ValueNode object, ValueNode location, Stamp stamp, BarrierType barrierType) { |
74 this(c, object, location, stamp, null, barrierType, false, null); | 74 this(c, object, location, stamp, null, barrierType, false, null); |
75 } | 75 } |
76 | 76 |
77 protected FixedAccessNode(NodeClass c, ValueNode object, ValueNode location, Stamp stamp, GuardingNode guard, BarrierType barrierType, boolean nullCheck, FrameState stateBefore) { | 77 protected FixedAccessNode(NodeClass<?> c, ValueNode object, ValueNode location, Stamp stamp, GuardingNode guard, BarrierType barrierType, boolean nullCheck, FrameState stateBefore) { |
78 super(c, stamp, stateBefore); | 78 super(c, stamp, stateBefore); |
79 this.object = object; | 79 this.object = object; |
80 this.location = location; | 80 this.location = location; |
81 this.guard = guard; | 81 this.guard = guard; |
82 this.barrierType = barrierType; | 82 this.barrierType = barrierType; |