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

Unified Diff: src/hydrogen-types.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/hydrogen-instructions.cc ('k') | src/hydrogen-types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-types.h
diff --git a/src/hydrogen-types.h b/src/hydrogen-types.h
index e924a6b549eb53fe6747a4565abdfd11c18065e9..08550f837d5100f4df46b9990b002ce07f67d5ff 100644
--- a/src/hydrogen-types.h
+++ b/src/hydrogen-types.h
@@ -8,6 +8,7 @@
#include <climits>
#include "src/base/macros.h"
+#include "src/ostreams.h"
namespace v8 {
namespace internal {
@@ -64,7 +65,7 @@ class HType V8_FINAL {
static HType FromType(typename T::TypeHandle type) V8_WARN_UNUSED_RESULT;
static HType FromValue(Handle<Object> value) V8_WARN_UNUSED_RESULT;
- const char* ToString() const V8_WARN_UNUSED_RESULT;
+ friend OStream& operator<<(OStream& os, const HType& t);
private:
enum Kind {
@@ -82,6 +83,8 @@ class HType V8_FINAL {
int16_t kind_;
};
+
+OStream& operator<<(OStream& os, const HType& t);
} } // namespace v8::internal
#endif // HYDROGEN_TYPES_H_
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/hydrogen-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698