Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/CallTargetNode.java @ 16566:c82000597867
Add getInvokeKind on Invoke, add hasReceiver on InvokeKind
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 14 Jul 2014 14:49:00 +0200 |
parents | 2b63e51e7789 |
children | cbd42807a31f |
comparison
equal
deleted
inserted
replaced
16565:2b63e51e7789 | 16566:c82000597867 |
---|---|
33 public abstract class CallTargetNode extends ValueNode implements LIRLowerable { | 33 public abstract class CallTargetNode extends ValueNode implements LIRLowerable { |
34 public enum InvokeKind { | 34 public enum InvokeKind { |
35 Interface, | 35 Interface, |
36 Special, | 36 Special, |
37 Static, | 37 Static, |
38 Virtual | 38 Virtual; |
39 | |
40 public boolean hasReceiver() { | |
41 return this != Static; | |
42 } | |
39 } | 43 } |
40 | 44 |
41 @Input private final NodeInputList<ValueNode> arguments; | 45 @Input private final NodeInputList<ValueNode> arguments; |
42 private ResolvedJavaMethod targetMethod; | 46 private ResolvedJavaMethod targetMethod; |
43 private InvokeKind invokeKind; | 47 private InvokeKind invokeKind; |