Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: src/hydrogen-dce.cc

Issue 334763003: Start using OStreams. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Reformatted. Feedback addressed. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codegen.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « src/codegen.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698