comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/AbstractNewArrayNode.java @ 19403: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
19402:a16f1bbe2965 19403:61d3cb8e1280
33 * The {@code AbstractNewArrayNode} is used for all 1-dimensional array allocations. 33 * The {@code AbstractNewArrayNode} is used for all 1-dimensional array allocations.
34 */ 34 */
35 @NodeInfo 35 @NodeInfo
36 public abstract class AbstractNewArrayNode extends AbstractNewObjectNode implements ArrayLengthProvider { 36 public abstract class AbstractNewArrayNode extends AbstractNewObjectNode implements ArrayLengthProvider {
37 37
38 public static final NodeClass TYPE = NodeClass.get(AbstractNewArrayNode.class); 38 public static final NodeClass<AbstractNewArrayNode> TYPE = NodeClass.get(AbstractNewArrayNode.class);
39 @Input protected ValueNode length; 39 @Input protected ValueNode length;
40 40
41 @Override 41 @Override
42 public ValueNode length() { 42 public ValueNode length() {
43 return length; 43 return length;
44 } 44 }
45 45
46 public AbstractNewArrayNode(NodeClass c, Stamp stamp, ValueNode length, boolean fillContents) { 46 public AbstractNewArrayNode(NodeClass<?> c, Stamp stamp, ValueNode length, boolean fillContents) {
47 super(c, stamp, fillContents); 47 super(c, stamp, fillContents);
48 this.length = length; 48 this.length = length;
49 } 49 }
50 50
51 /** 51 /**