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

Unified Diff: src/typing.cc

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 years, 5 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/transitions.h ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index 7a07f590be728456688a7446382026a8171b3898..98e6dc3e7841b0d573a825e0e54777c487729e4e 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -52,10 +52,8 @@ void AstTyper::Run(CompilationInfo* info) {
static void PrintObserved(Variable* var, Object* value, Type* type) {
OFStream os(stdout);
os << " observed " << (var->IsParameter() ? "param" : "local") << " ";
- var->name()->Print();
- os << " : ";
- value->ShortPrint();
- os << " -> ";
+ var->name()->Print(os);
+ os << " : " << Brief(value) << " -> ";
type->PrintTo(os);
os << endl;
}
« no previous file with comments | « src/transitions.h ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698