Mercurial > hg > graal-compiler
changeset 7382:31d1cc9219d8
gave CompilationTask a toString() method
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 15 Jan 2013 20:43:44 +0100 |
parents | 6761a8f854a4 |
children | 36474f315a8a |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java Tue Jan 15 18:54:02 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java Tue Jan 15 20:43:44 2013 +0100 @@ -136,6 +136,7 @@ } else { // Compiling an intrinsic graph - must clone the graph graph = graph.copy(); + //System.out.println("compiling intrinsic " + method); } return graalRuntime.getCompiler().compileMethod(method, graph, graalRuntime.getCache(), plan, optimisticOpts); } @@ -192,4 +193,9 @@ return id < o.id ? -1 : (id > o.id ? 1 : 0); } + @Override + public String toString() { + return "Compilation[id=" + id + ", prio=" + priority + " " + MetaUtil.format("%H.%n(%p)", method) + + (entryBCI == StructuredGraph.INVOCATION_ENTRY_BCI ? "" : "@" + entryBCI) + "]"; + } }