comparison graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.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 e0f77d30ad07
children cac0a7d1c325
comparison
equal deleted inserted replaced
16479:558cf39c646b 16480:10c12d09a8d2
169 return new BytecodeParser(metaAccess, method, graphBuilderConfig, optimisticOpts, frameState, stream, profilingInfo, constantPool, entryBCI); 169 return new BytecodeParser(metaAccess, method, graphBuilderConfig, optimisticOpts, frameState, stream, profilingInfo, constantPool, entryBCI);
170 } 170 }
171 171
172 @Override 172 @Override
173 protected String getDetailedName() { 173 protected String getDetailedName() {
174 return getName() + " " + MetaUtil.format("%H.%n(%p):%r", parser.getMethod()); 174 return getName() + " " + parser.getMethod().format("%H.%n(%p):%r");
175 } 175 }
176 176
177 public static class ExceptionInfo { 177 public static class ExceptionInfo {
178 178
179 public final FixedWithNextNode exceptionEdge; 179 public final FixedWithNextNode exceptionEdge;
211 } 211 }
212 212
213 @Override 213 @Override
214 protected void build() { 214 protected void build() {
215 if (PrintProfilingInformation.getValue()) { 215 if (PrintProfilingInformation.getValue()) {
216 TTY.println("Profiling info for " + MetaUtil.format("%H.%n(%p)", method)); 216 TTY.println("Profiling info for " + method.format("%H.%n(%p)"));
217 TTY.println(MetaUtil.indent(MetaUtil.profileToString(profilingInfo, method, CodeUtil.NEW_LINE), " ")); 217 TTY.println(MetaUtil.indent(MetaUtil.profileToString(profilingInfo, method, CodeUtil.NEW_LINE), " "));
218 } 218 }
219 219
220 try (Indent indent = Debug.logAndIndent("build graph for %s", method)) { 220 try (Indent indent = Debug.logAndIndent("build graph for %s", method)) {
221 221