Index: src/hydrogen-dce.cc |
diff --git a/src/hydrogen-dce.cc b/src/hydrogen-dce.cc |
index 96f088d0c07c8d97006891087c37d4ae1b3484cd..50021aa1759b97fe74c9f07fbe8e04eac88f04f7 100644 |
--- a/src/hydrogen-dce.cc |
+++ b/src/hydrogen-dce.cc |
@@ -32,16 +32,14 @@ void HDeadCodeEliminationPhase::MarkLive( |
void HDeadCodeEliminationPhase::PrintLive(HValue* ref, HValue* instr) { |
- HeapStringAllocator allocator; |
- StringStream stream(&allocator); |
+ OFStream os(stdout); |
+ os << "[MarkLive "; |
if (ref != NULL) { |
- ref->PrintTo(&stream); |
+ os << *ref; |
} else { |
- stream.Add("root "); |
+ os << "root "; |
} |
- stream.Add(" -> "); |
- instr->PrintTo(&stream); |
- PrintF("[MarkLive %s]\n", stream.ToCString().get()); |
+ os << " -> " << *instr << "]" << endl; |
} |