Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/AbstractNewObjectNode.java @ 16895:06c15e88d383
added factory method to all Node classes; replaced Node classes instantiation with calls to factory methods; replaced identity tests on Node classes with ' == <node class>.getGenClass()' idiom
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 18 Aug 2014 14:04:21 +0200 |
parents | cbd42807a31f |
children | 0fe4732e5181 |
comparison
equal
deleted
inserted
replaced
16894:cc7aaa92c27d | 16895:06c15e88d383 |
---|---|
44 * Constructs a new AbstractNewObjectNode. | 44 * Constructs a new AbstractNewObjectNode. |
45 * | 45 * |
46 * @param stamp the stamp of the newly created object | 46 * @param stamp the stamp of the newly created object |
47 * @param fillContents determines if the object's contents should be initialized to zero/null. | 47 * @param fillContents determines if the object's contents should be initialized to zero/null. |
48 */ | 48 */ |
49 public static AbstractNewObjectNode create(Stamp stamp, boolean fillContents) { | |
50 return new AbstractNewObjectNodeGen(stamp, fillContents); | |
51 } | |
52 | |
49 protected AbstractNewObjectNode(Stamp stamp, boolean fillContents) { | 53 protected AbstractNewObjectNode(Stamp stamp, boolean fillContents) { |
50 super(stamp); | 54 super(stamp); |
51 this.fillContents = fillContents; | 55 this.fillContents = fillContents; |
52 } | 56 } |
53 | 57 |