Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 11880:9a747d8e0d0f
broadened types in Canonicalizable interface so that it can be moved to the com.oracle.graal.graph project (GRAAL-506)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 01 Oct 2013 20:32:47 +0200 |
parents | 1aed684853f6 |
children | da9db8331658 |
comparison
equal
deleted
inserted
replaced
11879:7e57add9c0d5 | 11880:9a747d8e0d0f |
---|---|
123 return super.toString(verbosity); | 123 return super.toString(verbosity); |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 @Override | 127 @Override |
128 public ValueNode canonical(CanonicalizerTool tool) { | 128 public Node canonical(CanonicalizerTool tool) { |
129 if (!isStatic()) { | 129 if (!isStatic()) { |
130 ValueNode receiver = receiver(); | 130 ValueNode receiver = receiver(); |
131 if (receiver != null && ObjectStamp.isExactType(receiver) && ObjectStamp.typeOrNull(receiver) != null) { | 131 if (receiver != null && ObjectStamp.isExactType(receiver) && ObjectStamp.typeOrNull(receiver) != null) { |
132 if (invokeKind == InvokeKind.Interface || invokeKind == InvokeKind.Virtual) { | 132 if (invokeKind == InvokeKind.Interface || invokeKind == InvokeKind.Virtual) { |
133 ResolvedJavaMethod method = ObjectStamp.typeOrNull(receiver).resolveMethod(targetMethod); | 133 ResolvedJavaMethod method = ObjectStamp.typeOrNull(receiver).resolveMethod(targetMethod); |