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_ |