Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index fdc1b94c420f90b08a237fc64f507c749432a081..8be6c91c8307cc2abd60675e28f4b318f5d88b9e 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -354,6 +354,14 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
DCHECK(info()->shared_info()->has_deoptimization_support()); |
DCHECK(!info()->is_first_compile()); |
+ if (FLAG_trace_opt) { |
+ OFStream os(stdout); |
+ os << "[compiling method " << Brief(*info()->closure()) << " using " |
+ << compiler_name_; |
+ if (info()->is_osr()) os << " OSR"; |
+ os << "]" << std::endl; |
+ } |
+ |
// Delegate to the underlying implementation. |
DCHECK_EQ(SUCCEEDED, last_status()); |
ScopedTimer t(&time_taken_to_create_graph_); |