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

Unified Diff: src/ostreams.h

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/objects-printer.cc ('k') | src/ostreams.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ostreams.h
diff --git a/src/ostreams.h b/src/ostreams.h
index 7853e316cfe3252298fc1b5f244e16ed45f59aa6..f70b6de230d42c8dfd5814e1152008ab06169267 100644
--- a/src/ostreams.h
+++ b/src/ostreams.h
@@ -116,6 +116,15 @@ class OFStream: public OStream {
DISALLOW_COPY_AND_ASSIGN(OFStream);
};
+
+// A wrapper to disambiguate uint16_t and uc16.
+struct AsUC16 {
+ explicit AsUC16(uint16_t v) : value(v) {}
+ uint16_t value;
+};
+
+
+OStream& operator<<(OStream& os, const AsUC16& c);
} } // namespace v8::internal
#endif // V8_OSTREAMS_H_
« no previous file with comments | « src/objects-printer.cc ('k') | src/ostreams.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698