Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/GuardedValueNode.java @ 17450:45b45f902bed
removed Node generation (GRAAL-857)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 15 Oct 2014 15:35:33 +0200 |
parents | c9bb0da795d4 |
children | f57d86eb036f |
comparison
equal
deleted
inserted
replaced
17449:cca154b1bf91 | 17450:45b45f902bed |
---|---|
41 | 41 |
42 @Input ValueNode object; | 42 @Input ValueNode object; |
43 protected final Stamp piStamp; | 43 protected final Stamp piStamp; |
44 | 44 |
45 public static GuardedValueNode create(ValueNode object, GuardingNode guard, Stamp stamp) { | 45 public static GuardedValueNode create(ValueNode object, GuardingNode guard, Stamp stamp) { |
46 return USE_GENERATED_NODES ? new GuardedValueNodeGen(object, guard, stamp) : new GuardedValueNode(object, guard, stamp); | 46 return new GuardedValueNode(object, guard, stamp); |
47 } | 47 } |
48 | 48 |
49 protected GuardedValueNode(ValueNode object, GuardingNode guard, Stamp stamp) { | 49 protected GuardedValueNode(ValueNode object, GuardingNode guard, Stamp stamp) { |
50 super(stamp, guard); | 50 super(stamp, guard); |
51 this.object = object; | 51 this.object = object; |
52 this.piStamp = stamp; | 52 this.piStamp = stamp; |
53 } | 53 } |
54 | 54 |
55 public static GuardedValueNode create(ValueNode object, GuardingNode guard) { | 55 public static GuardedValueNode create(ValueNode object, GuardingNode guard) { |
56 return USE_GENERATED_NODES ? new GuardedValueNodeGen(object, guard) : new GuardedValueNode(object, guard); | 56 return new GuardedValueNode(object, guard); |
57 } | 57 } |
58 | 58 |
59 protected GuardedValueNode(ValueNode object, GuardingNode guard) { | 59 protected GuardedValueNode(ValueNode object, GuardingNode guard) { |
60 this(object, guard, object.stamp()); | 60 this(object, guard, object.stamp()); |
61 } | 61 } |