Chromium Code Reviews| Index: src/compiler.cc |
| diff --git a/src/compiler.cc b/src/compiler.cc |
| index b081a18fff4dfb4b64f70c6531006886db0a7ce1..80a8c27543d15505d5ca43ddbf02415eb0eef706 100644 |
| --- a/src/compiler.cc |
| +++ b/src/compiler.cc |
| @@ -415,6 +415,12 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
| // Check the whitelist for TurboFan. |
| if ((FLAG_turbo_asm && info()->shared_info()->asm_function()) || |
| info()->closure()->PassesFilter(FLAG_turbo_filter)) { |
| + if (FLAG_trace_opt) { |
| + OFStream os(stdout); |
| + os << "[compiling method " << Brief(*info()->closure()) |
| + << " using TurboFan]" << std::endl; |
| + } |
| + Timer t(this, &time_taken_to_create_graph_); |
| compiler::Pipeline pipeline(info()); |
| pipeline.GenerateCode(); |
| if (!info()->code().is_null()) { |
| @@ -422,10 +428,13 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
| } |
| } |
| + if (FLAG_trace_opt) { |
| + OFStream os(stdout); |
| + os << "[compiling method " << Brief(*info()->closure()) |
| + << " using hydrogen]" << std::endl; |
|
Benedikt Meurer
2014/12/19 11:42:13
"using CrankShaft" for consistency?
Sven Panne
2014/12/19 11:46:54
Done.
|
| + } |
| + |
| if (FLAG_trace_hydrogen) { |
| - Handle<String> name = info()->function()->debug_name(); |
| - PrintF("-----------------------------------------------------------\n"); |
| - PrintF("Compiling method %s using hydrogen\n", name->ToCString().get()); |
| isolate()->GetHTracer()->TraceCompilation(info()); |
| } |
| @@ -871,11 +880,6 @@ static bool GetOptimizedCodeNow(CompilationInfo* info) { |
| InsertCodeIntoOptimizedCodeMap(info); |
| RecordFunctionCompilation(Logger::LAZY_COMPILE_TAG, info, |
| info->shared_info()); |
| - if (FLAG_trace_opt) { |
| - PrintF("[completed optimizing "); |
| - info->closure()->ShortPrint(); |
| - PrintF("]\n"); |
| - } |
| return true; |
| } |