Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/nodes/HotSpotDirectCallTargetNode.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 |
---|---|
30 import com.oracle.graal.nodeinfo.*; | 30 import com.oracle.graal.nodeinfo.*; |
31 import com.oracle.graal.nodes.*; | 31 import com.oracle.graal.nodes.*; |
32 | 32 |
33 @NodeInfo | 33 @NodeInfo |
34 public class HotSpotDirectCallTargetNode extends DirectCallTargetNode { | 34 public class HotSpotDirectCallTargetNode extends DirectCallTargetNode { |
35 public HotSpotDirectCallTargetNode(List<ValueNode> arguments, Stamp returnStamp, JavaType[] signature, ResolvedJavaMethod target, Type callType, InvokeKind invokeKind) { | 35 public static HotSpotDirectCallTargetNode create(List<ValueNode> arguments, Stamp returnStamp, JavaType[] signature, ResolvedJavaMethod target, Type callType, InvokeKind invokeKind) { |
36 return new HotSpotDirectCallTargetNodeGen(arguments, returnStamp, signature, target, callType, invokeKind); | |
37 } | |
38 | |
39 protected HotSpotDirectCallTargetNode(List<ValueNode> arguments, Stamp returnStamp, JavaType[] signature, ResolvedJavaMethod target, Type callType, InvokeKind invokeKind) { | |
36 super(arguments, returnStamp, signature, target, callType, invokeKind); | 40 super(arguments, returnStamp, signature, target, callType, invokeKind); |
37 } | 41 } |
38 } | 42 } |