8003983: LogCompilation tool is broken since c1 support

Fixed emitting and parsing

Reviewed-by: jrose, kvn
This commit is contained in:
Nils Eliasson 2012-11-26 15:11:55 +01:00
parent c5240e7c53
commit 42c0192ee6
3 changed files with 18 additions and 8 deletions

View file

@ -129,7 +129,15 @@ void Compilation::build_hir() {
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;