Mercurial > hg > truffle
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/CallTargetNode.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 |
---|---|
30 import com.oracle.graal.nodeinfo.*; | 30 import com.oracle.graal.nodeinfo.*; |
31 import com.oracle.graal.nodes.spi.*; | 31 import com.oracle.graal.nodes.spi.*; |
32 | 32 |
33 @NodeInfo(allowedUsageTypes = {InputType.Extension}) | 33 @NodeInfo(allowedUsageTypes = {InputType.Extension}) |
34 public abstract class CallTargetNode extends ValueNode implements LIRLowerable { | 34 public abstract class CallTargetNode extends ValueNode implements LIRLowerable { |
35 public static final NodeClass TYPE = NodeClass.get(CallTargetNode.class); | 35 public static final NodeClass<CallTargetNode> TYPE = NodeClass.get(CallTargetNode.class); |
36 | 36 |
37 public enum InvokeKind { | 37 public enum InvokeKind { |
38 Interface(false), | 38 Interface(false), |
39 Special(true), | 39 Special(true), |
40 Static(true), | 40 Static(true), |
65 | 65 |
66 @Input protected NodeInputList<ValueNode> arguments; | 66 @Input protected NodeInputList<ValueNode> arguments; |
67 protected ResolvedJavaMethod targetMethod; | 67 protected ResolvedJavaMethod targetMethod; |
68 protected InvokeKind invokeKind; | 68 protected InvokeKind invokeKind; |
69 | 69 |
70 protected CallTargetNode(NodeClass c, ValueNode[] arguments, ResolvedJavaMethod targetMethod, InvokeKind invokeKind) { | 70 protected CallTargetNode(NodeClass<?> c, ValueNode[] arguments, ResolvedJavaMethod targetMethod, InvokeKind invokeKind) { |
71 super(c, StampFactory.forVoid()); | 71 super(c, StampFactory.forVoid()); |
72 this.targetMethod = targetMethod; | 72 this.targetMethod = targetMethod; |
73 this.invokeKind = invokeKind; | 73 this.invokeKind = invokeKind; |
74 this.arguments = new NodeInputList<>(this, arguments); | 74 this.arguments = new NodeInputList<>(this, arguments); |
75 } | 75 } |
76 | 76 |
77 protected CallTargetNode(NodeClass c, List<ValueNode> arguments, ResolvedJavaMethod targetMethod, InvokeKind invokeKind) { | 77 protected CallTargetNode(NodeClass<?> c, List<ValueNode> arguments, ResolvedJavaMethod targetMethod, InvokeKind invokeKind) { |
78 super(c, StampFactory.forVoid()); | 78 super(c, StampFactory.forVoid()); |
79 this.targetMethod = targetMethod; | 79 this.targetMethod = targetMethod; |
80 this.invokeKind = invokeKind; | 80 this.invokeKind = invokeKind; |
81 this.arguments = new NodeInputList<>(this, arguments); | 81 this.arguments = new NodeInputList<>(this, arguments); |
82 } | 82 } |