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