changeset 12472:85d03b72f269

added support disassembling during CodeGen
author Doug Simon <doug.simon@oracle.com>
date Thu, 17 Oct 2013 12:22:27 +0200
parents 073e4d6cd3dd
children 237aff48d57e f04f58c8206b
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java	Thu Oct 17 12:21:25 2013 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/GraalCompiler.java	Thu Oct 17 12:22:27 2013 +0200
@@ -284,6 +284,10 @@
         }
         result.setLeafGraphIds(leafGraphIds);
 
+        if (Debug.isLogEnabled()) {
+            Debug.log("%s", backend.getProviders().getCodeCache().disassemble(result, null));
+        }
+
         Debug.dump(result, "After code generation");
     }