Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | 225002aba5a5 |
children | 7d66682cc901 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java Wed Jan 23 16:34:38 2013 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java Wed Jan 23 16:34:57 2013 +0100 @@ -29,11 +29,9 @@ import com.oracle.graal.nodes.type.*; public class MethodCallTargetNode extends CallTargetNode implements Node.IterableNodeType, Canonicalizable { + public enum InvokeKind { - Interface, - Special, - Static, - Virtual + Interface, Special, Static, Virtual } private final JavaType returnType; @@ -52,6 +50,7 @@ /** * Gets the target method for this invocation instruction. + * * @return the target method */ public ResolvedJavaMethod targetMethod() { @@ -72,8 +71,9 @@ /** * Gets the instruction that produces the receiver object for this invocation, if any. - * @return the instruction that produces the receiver object for this invocation if any, {@code null} if this - * invocation does not take a receiver object + * + * @return the instruction that produces the receiver object for this invocation if any, + * {@code null} if this invocation does not take a receiver object */ public ValueNode receiver() { return isStatic() ? null : arguments().get(0); @@ -81,6 +81,7 @@ /** * Checks whether this is an invocation of a static method. + * * @return {@code true} if the invocation is a static invocation */ public boolean isStatic() { @@ -95,7 +96,6 @@ return (Invoke) this.usages().first(); } - @Override public boolean verify() { assert usages().count() <= 1 : "call target may only be used by a single invoke";