comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/virtual/VirtualInstanceNode.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 9ecb47999e01
children 880717e44675
comparison
equal deleted inserted replaced
19402:a16f1bbe2965 19403:61d3cb8e1280
28 import com.oracle.graal.nodes.*; 28 import com.oracle.graal.nodes.*;
29 29
30 @NodeInfo(nameTemplate = "VirtualInstance {p#type/s}") 30 @NodeInfo(nameTemplate = "VirtualInstance {p#type/s}")
31 public class VirtualInstanceNode extends VirtualObjectNode { 31 public class VirtualInstanceNode extends VirtualObjectNode {
32 32
33 public static final NodeClass TYPE = NodeClass.get(VirtualInstanceNode.class); 33 public static final NodeClass<VirtualInstanceNode> TYPE = NodeClass.get(VirtualInstanceNode.class);
34 protected final ResolvedJavaType type; 34 protected final ResolvedJavaType type;
35 protected final ResolvedJavaField[] fields; 35 protected final ResolvedJavaField[] fields;
36 36
37 public VirtualInstanceNode(ResolvedJavaType type, boolean hasIdentity) { 37 public VirtualInstanceNode(ResolvedJavaType type, boolean hasIdentity) {
38 this(type, type.getInstanceFields(true), hasIdentity); 38 this(type, type.getInstanceFields(true), hasIdentity);
40 40
41 public VirtualInstanceNode(ResolvedJavaType type, ResolvedJavaField[] fields, boolean hasIdentity) { 41 public VirtualInstanceNode(ResolvedJavaType type, ResolvedJavaField[] fields, boolean hasIdentity) {
42 this(TYPE, type, fields, hasIdentity); 42 this(TYPE, type, fields, hasIdentity);
43 } 43 }
44 44
45 protected VirtualInstanceNode(NodeClass c, ResolvedJavaType type, boolean hasIdentity) { 45 protected VirtualInstanceNode(NodeClass<?> c, ResolvedJavaType type, boolean hasIdentity) {
46 this(c, type, type.getInstanceFields(true), hasIdentity); 46 this(c, type, type.getInstanceFields(true), hasIdentity);
47 } 47 }
48 48
49 protected VirtualInstanceNode(NodeClass c, ResolvedJavaType type, ResolvedJavaField[] fields, boolean hasIdentity) { 49 protected VirtualInstanceNode(NodeClass<?> c, ResolvedJavaType type, ResolvedJavaField[] fields, boolean hasIdentity) {
50 super(c, type, hasIdentity); 50 super(c, type, hasIdentity);
51 this.type = type; 51 this.type = type;
52 this.fields = fields; 52 this.fields = fields;
53 } 53 }
54 54