Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index cce31d936808ea871dc8ea0798b134441dc41a9d..ab9daf48f8f82fa328d589cbc35ace3a5a64c9e3 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -270,9 +270,9 @@ static Handle<Code> DoGenerateCode(Stub* stub) { |
LChunk* chunk = OptimizeGraph(builder.CreateGraph()); |
Handle<Code> code = chunk->Codegen(); |
if (FLAG_profile_hydrogen_code_stub_compilation) { |
- double ms = timer.Elapsed().InMillisecondsF(); |
- PrintF("[Lazy compilation of %s took %0.3f ms]\n", |
- stub->GetName().get(), ms); |
+ OFStream os(stdout); |
+ os << "[Lazy compilation of " << stub << " took " |
+ << timer.Elapsed().InMillisecondsF() << " ms]" << endl; |
} |
return code; |
} |