Index: src/optimizing-compiler-thread.cc |
diff --git a/src/optimizing-compiler-thread.cc b/src/optimizing-compiler-thread.cc |
index 0074adbefe1e10a650e76f33ba8711e75bcf5ee6..387e9c055cf99e3ee01f0f4bf0bcbffd822bdaa9 100644 |
--- a/src/optimizing-compiler-thread.cc |
+++ b/src/optimizing-compiler-thread.cc |
@@ -226,7 +226,7 @@ void OptimizingCompilerThread::InstallOptimizedFunctions() { |
if (info->is_osr()) { |
if (FLAG_trace_osr) { |
PrintF("[COSR - "); |
- info->closure()->PrintName(); |
+ function->ShortPrint(); |
PrintF(" is ready for install and entry at AST id %d]\n", |
info->osr_ast_id().ToInt()); |
} |
@@ -237,6 +237,11 @@ void OptimizingCompilerThread::InstallOptimizedFunctions() { |
BackEdgeTable::RemoveStackCheck(code, offset); |
} else { |
if (function->IsOptimized()) { |
+ if (FLAG_trace_concurrent_recompilation) { |
+ PrintF(" ** Aborting compilation for "); |
+ function->ShortPrint(); |
+ PrintF(" as it has already been optimized.\n"); |
+ } |
DisposeOptimizedCompileJob(job, false); |
} else { |
Handle<Code> code = Compiler::GetConcurrentlyOptimizedCode(job); |