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

Unified Diff: src/ic.h

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/ia32/code-stubs-ia32.h ('k') | src/ic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.h
diff --git a/src/ic.h b/src/ic.h
index c2d0c32e311e457f34326ba03a8f1815ecd46dce..19146acc7ca5217076ed9d9620dbaf53749420a2 100644
--- a/src/ic.h
+++ b/src/ic.h
@@ -354,8 +354,6 @@ class CallIC: public IC {
bool CallAsMethod() const { return call_type_ == METHOD; }
- void Print(StringStream* stream) const;
-
private:
class ArgcBits: public BitField<int, 0, Code::kArgumentsBits> {};
class CallTypeBits: public BitField<CallType, Code::kArgumentsBits, 1> {};
@@ -392,6 +390,9 @@ class CallIC: public IC {
};
+OStream& operator<<(OStream& os, const CallIC::State& s);
+
+
class LoadIC: public IC {
public:
// ExtraICState bits
@@ -862,8 +863,6 @@ class BinaryOpIC: public IC {
}
Type* GetResultType(Zone* zone) const;
- void Print(StringStream* stream) const;
-
void Update(Handle<Object> left,
Handle<Object> right,
Handle<Object> result);
@@ -871,6 +870,8 @@ class BinaryOpIC: public IC {
Isolate* isolate() const { return isolate_; }
private:
+ friend OStream& operator<<(OStream& os, const BinaryOpIC::State& s);
+
enum Kind { NONE, SMI, INT32, NUMBER, STRING, GENERIC };
Kind UpdateKind(Handle<Object> object, Kind kind) const;
@@ -912,6 +913,9 @@ class BinaryOpIC: public IC {
};
+OStream& operator<<(OStream& os, const BinaryOpIC::State& s);
+
+
class CompareIC: public IC {
public:
// The type/state lattice is defined by the following inequations:
« no previous file with comments | « src/ia32/code-stubs-ia32.h ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698