changeset 5249:2d26d5ca2e5b

give machine code printed by the CFGPrinterObserver a cfg context so that does not depend on the LIR also being printed
author Doug Simon <doug.simon@oracle.com>
date Wed, 18 Apr 2012 17:56:53 +0200
parents 066f1687ba24
children 0f6f647e8a96
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinterObserver.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java	Wed Apr 18 13:42:11 2012 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java	Wed Apr 18 17:56:53 2012 +0200
@@ -277,7 +277,7 @@
         }
 
         Debug.dump(lir, "After code generation");
-        Debug.dump(targetMethod, "After code generation");
+        Debug.dump(targetMethod, "Generated code");
         return targetMethod;
     }
 }
--- a/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinterObserver.java	Wed Apr 18 13:42:11 2012 +0200
+++ b/graal/com.oracle.graal.printer/src/com/oracle/graal/printer/CFGPrinterObserver.java	Wed Apr 18 17:56:53 2012 +0200
@@ -109,7 +109,7 @@
             cfgPrinter.printCFG(message, Arrays.asList(cfgPrinter.cfg.getBlocks()));
 
         } else if (object instanceof CiTargetMethod) {
-            cfgPrinter.printMachineCode(runtime.disassemble((CiTargetMethod) object), null);
+            cfgPrinter.printMachineCode(runtime.disassemble((CiTargetMethod) object), message);
 
         } else if (object instanceof Interval[]) {
             cfgPrinter.printIntervals(message, (Interval[]) object);