Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 5541:b4c406861c33
More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 09 Jun 2012 16:52:12 +0200 |
parents | a891c53a295b |
children | 823a2978e7ba |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java Fri Jun 08 23:47:42 2012 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java Sat Jun 09 16:52:12 2012 +0200 @@ -36,14 +36,14 @@ Virtual } - private final RiType returnType; - private RiResolvedMethod targetMethod; + private final JavaType returnType; + private ResolvedJavaMethod targetMethod; private InvokeKind invokeKind; /** * @param arguments */ - public MethodCallTargetNode(InvokeKind invokeKind, RiResolvedMethod targetMethod, ValueNode[] arguments, RiType returnType) { + public MethodCallTargetNode(InvokeKind invokeKind, ResolvedJavaMethod targetMethod, ValueNode[] arguments, JavaType returnType) { super(arguments); this.invokeKind = invokeKind; this.returnType = returnType; @@ -51,7 +51,7 @@ } @Override - public RiType returnType() { + public JavaType returnType() { return returnType; } @@ -59,7 +59,7 @@ * Gets the target method for this invocation instruction. * @return the target method */ - public RiResolvedMethod targetMethod() { + public ResolvedJavaMethod targetMethod() { return targetMethod; } @@ -71,7 +71,7 @@ this.invokeKind = kind; } - public void setTargetMethod(RiResolvedMethod method) { + public void setTargetMethod(ResolvedJavaMethod method) { targetMethod = method; } @@ -126,7 +126,7 @@ ValueNode receiver = receiver(); if (receiver != null && receiver.objectStamp().isExactType()) { if (invokeKind == InvokeKind.Interface || invokeKind == InvokeKind.Virtual) { - RiResolvedMethod method = receiver.objectStamp().type().resolveMethodImpl(targetMethod); + ResolvedJavaMethod method = receiver.objectStamp().type().resolveMethodImpl(targetMethod); if (method != null) { invokeKind = InvokeKind.Special; targetMethod = method; @@ -139,8 +139,8 @@ public Stamp returnStamp() { Kind returnKind = targetMethod.signature().returnKind(); - if (returnKind == Kind.Object && returnType instanceof RiResolvedType) { - return StampFactory.declared((RiResolvedType) returnType); + if (returnKind == Kind.Object && returnType instanceof ResolvedJavaType) { + return StampFactory.declared((ResolvedJavaType) returnType); } else { return StampFactory.forKind(returnKind); }