diff src/share/vm/c1/c1_Compilation.cpp @ 7201:c5d414e98fd4

8003983: LogCompilation tool is broken since c1 support Summary: Fixed emitting and parsing Reviewed-by: jrose, kvn
author neliasso
date Mon, 26 Nov 2012 15:11:55 +0100
parents d804e148cff8
children 46f6f063b272
line wrap: on
line diff
--- a/src/share/vm/c1/c1_Compilation.cpp	Mon Dec 03 15:48:49 2012 -0800
+++ b/src/share/vm/c1/c1_Compilation.cpp	Mon Nov 26 15:11:55 2012 +0100
@@ -129,7 +129,15 @@
   CHECK_BAILOUT();
 
   // setup ir
+  CompileLog* log = this->log();
+  if (log != NULL) {
+    log->begin_head("parse method='%d' ",
+                    log->identify(_method));
+    log->stamp();
+    log->end_head();
+  }
   _hir = new IR(this, method(), osr_bci());
+  if (log)  log->done("parse");
   if (!_hir->is_valid()) {
     bailout("invalid parsing");
     return;