comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/MethodCallTargetNode.java @ 16480:10c12d09a8d2

moved format(String format, JavaMethod method) from MetaUtil to be a default method in JavaMethod
author Doug Simon <doug.simon@oracle.com>
date Thu, 10 Jul 2014 22:44:38 +0200
parents 5605c5e37a1e
children 1e63cb55f61d
comparison
equal deleted inserted replaced
16479:558cf39c646b 16480:10c12d09a8d2
193 @Override 193 @Override
194 public String targetName() { 194 public String targetName() {
195 if (targetMethod() == null) { 195 if (targetMethod() == null) {
196 return "??Invalid!"; 196 return "??Invalid!";
197 } 197 }
198 return MetaUtil.format("%h.%n", targetMethod()); 198 return targetMethod().format("%h.%n");
199 } 199 }
200 200
201 public static MethodCallTargetNode find(StructuredGraph graph, ResolvedJavaMethod method) { 201 public static MethodCallTargetNode find(StructuredGraph graph, ResolvedJavaMethod method) {
202 for (MethodCallTargetNode target : graph.getNodes(MethodCallTargetNode.class)) { 202 for (MethodCallTargetNode target : graph.getNodes(MethodCallTargetNode.class)) {
203 if (target.targetMethod.equals(method)) { 203 if (target.targetMethod.equals(method)) {