comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValuePhiNode.java @ 16919:0fe4732e5181

made use of generated Node classes predicated on value of graal.useGeneratedNodes system property (default is false)
author Doug Simon <doug.simon@oracle.com>
date Mon, 25 Aug 2014 13:45:12 +0200
parents f90dcdbbb75e
children 27b40d2f8f8a
comparison
equal deleted inserted replaced
16918:b03a16cc5245 16919:0fe4732e5181
40 * 40 *
41 * @param stamp the stamp of the value 41 * @param stamp the stamp of the value
42 * @param merge the merge that the new phi belongs to 42 * @param merge the merge that the new phi belongs to
43 */ 43 */
44 public static ValuePhiNode create(Stamp stamp, MergeNode merge) { 44 public static ValuePhiNode create(Stamp stamp, MergeNode merge) {
45 return new ValuePhiNodeGen(stamp, merge); 45 return USE_GENERATED_NODES ? new ValuePhiNodeGen(stamp, merge) : new ValuePhiNode(stamp, merge);
46 } 46 }
47 47
48 protected ValuePhiNode(Stamp stamp, MergeNode merge) { 48 protected ValuePhiNode(Stamp stamp, MergeNode merge) {
49 super(stamp, merge); 49 super(stamp, merge);
50 assert stamp != StampFactory.forVoid(); 50 assert stamp != StampFactory.forVoid();
57 * @param stamp the stamp of the value 57 * @param stamp the stamp of the value
58 * @param merge the merge that the new phi belongs to 58 * @param merge the merge that the new phi belongs to
59 * @param values the initial values of the phi 59 * @param values the initial values of the phi
60 */ 60 */
61 public static ValuePhiNode create(Stamp stamp, MergeNode merge, ValueNode[] values) { 61 public static ValuePhiNode create(Stamp stamp, MergeNode merge, ValueNode[] values) {
62 return new ValuePhiNodeGen(stamp, merge, values); 62 return USE_GENERATED_NODES ? new ValuePhiNodeGen(stamp, merge, values) : new ValuePhiNode(stamp, merge, values);
63 } 63 }
64 64
65 protected ValuePhiNode(Stamp stamp, MergeNode merge, ValueNode[] values) { 65 protected ValuePhiNode(Stamp stamp, MergeNode merge, ValueNode[] values) {
66 super(stamp, merge); 66 super(stamp, merge);
67 assert stamp != StampFactory.forVoid(); 67 assert stamp != StampFactory.forVoid();