Index: src/hydrogen-gvn.cc |
diff --git a/src/hydrogen-gvn.cc b/src/hydrogen-gvn.cc |
index 829a0bb6465cbf24c2e53a4f88e7f79713365448..c86bd9bf59ba01f8a98b3ceb9406f8201cf5c906 100644 |
--- a/src/hydrogen-gvn.cc |
+++ b/src/hydrogen-gvn.cc |
@@ -449,11 +449,9 @@ bool SideEffectsTracker::ComputeGlobalVar(Unique<Cell> cell, int* index) { |
} |
if (num_global_vars_ < kNumberOfGlobalVars) { |
if (FLAG_trace_gvn) { |
- HeapStringAllocator allocator; |
- StringStream stream(&allocator); |
- stream.Add("Tracking global var [%p] (mapped to index %d)\n", |
- *cell.handle(), num_global_vars_); |
- stream.OutputToStdOut(); |
+ OFStream os(stdout); |
+ os << "Tracking global var [" << *cell.handle() << "] " |
+ << "(mapped to index " << num_global_vars_ << ")" << endl; |
} |
*index = num_global_vars_; |
global_vars_[num_global_vars_++] = cell; |