Chromium Code Reviews| Index: src/ic.h |
| diff --git a/src/ic.h b/src/ic.h |
| index dd6b609743f604b37519542abc0dcd710630b8cd..fc3bfc6bcfab8fa538c95279aaa5a0f4eedb13a6 100644 |
| --- a/src/ic.h |
| +++ b/src/ic.h |
| @@ -743,11 +743,11 @@ class BinaryOpIC: public IC { |
| public: |
| class State V8_FINAL BASE_EMBEDDED { |
| public: |
| - explicit State(ExtraICState extra_ic_state); |
| + explicit State(Isolate* isolate, ExtraICState extra_ic_state); |
|
Michael Starzinger
2014/04/25 08:03:30
nit: No longer needs to be "explicit" here.
Sven Panne
2014/04/25 08:27:09
Done.
|
| - State(Token::Value op, OverwriteMode mode) |
| + State(Isolate* isolate, Token::Value op, OverwriteMode mode) |
| : op_(op), mode_(mode), left_kind_(NONE), right_kind_(NONE), |
| - result_kind_(NONE) { |
| + result_kind_(NONE), isolate_(isolate) { |
| ASSERT_LE(FIRST_TOKEN, op); |
| ASSERT_LE(op, LAST_TOKEN); |
| } |
| @@ -824,6 +824,8 @@ class BinaryOpIC: public IC { |
| Handle<Object> right, |
| Handle<Object> result); |
| + Isolate* isolate() const { return isolate_; } |
| + |
| private: |
| enum Kind { NONE, SMI, INT32, NUMBER, STRING, GENERIC }; |
| @@ -854,6 +856,7 @@ class BinaryOpIC: public IC { |
| Kind right_kind_; |
| Kind result_kind_; |
| Maybe<int> fixed_right_arg_; |
| + Isolate* isolate_; |
| }; |
| explicit BinaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) { } |