graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File GRAAL-213 Cdiff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java

graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java

Print this page

        

*** 23,32 **** --- 23,33 ---- package com.oracle.graal.hotspot; import static com.oracle.graal.nodes.StructuredGraph.*; import static com.oracle.graal.phases.common.InliningUtil.*; + import java.lang.reflect.Modifier; import java.util.concurrent.*; import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; import com.oracle.graal.compiler.*;
*** 131,140 **** --- 132,144 ---- final boolean printCompilation = GraalOptions.PrintCompilation && !TTY.isSuppressed(); if (printCompilation) { TTY.println(String.format("%-6d Graal %-70s %-45s %-50s %s...", id, method.getDeclaringClass().getName(), method.getName(), method.getSignature(), entryBCI == StructuredGraph.INVOCATION_ENTRY_BCI ? "" : "(OSR@" + entryBCI + ") ")); } + if (GraalOptions.HotSpotPrintCompilation) { + printCompilation(); + } CompilationResult result = null; TTY.Filter filter = new TTY.Filter(GraalOptions.PrintFilter, method); long start = System.currentTimeMillis(); try {
*** 181,190 **** --- 185,211 ---- } } stats.finish(method); } + /** + * Print a HotSpot-style compilation message to the console. + */ + private void printCompilation() { + final boolean isOSR = entryBCI != StructuredGraph.INVOCATION_ENTRY_BCI; + final int mod = method.getModifiers(); + TTY.println(String.format("%7d %4d %c%c%c%c%c %s %s(%d bytes)", + 0, id, + isOSR ? '%' : ' ', + Modifier.isSynchronized(mod) ? 's' : ' ', + ' ', + ' ', + Modifier.isNative(mod) ? 'n' : ' ', + MetaUtil.format("%H::%n(%p)", method), + isOSR ? "@ " + entryBCI + " " : "", method.getCodeSize())); + } + private void installMethod(final CompilationResult compResult) { Debug.scope("CodeInstall", new Object[]{new DebugDumpScope(String.valueOf(id), true), graalRuntime.getRuntime(), method}, new Runnable() { @Override public void run() {
graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File