| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_IC_STATE_H_ | 5 #ifndef V8_IC_STATE_H_ |
| 6 #define V8_IC_STATE_H_ | 6 #define V8_IC_STATE_H_ |
| 7 | 7 |
| 8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 GENERIC | 186 GENERIC |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 static Type* StateToType(Zone* zone, State state, | 189 static Type* StateToType(Zone* zone, State state, |
| 190 Handle<Map> map = Handle<Map>()); | 190 Handle<Map> map = Handle<Map>()); |
| 191 | 191 |
| 192 static State NewInputState(State old_state, Handle<Object> value); | 192 static State NewInputState(State old_state, Handle<Object> value); |
| 193 | 193 |
| 194 static const char* GetStateName(CompareICState::State state); | 194 static const char* GetStateName(CompareICState::State state); |
| 195 | 195 |
| 196 static State TargetState(State old_state, State old_left, State old_right, | 196 static State TargetState(Isolate* isolate, State old_state, State old_left, |
| 197 Token::Value op, bool has_inlined_smi_code, | 197 State old_right, Token::Value op, |
| 198 Handle<Object> x, Handle<Object> y); | 198 bool has_inlined_smi_code, Handle<Object> x, |
| 199 Handle<Object> y); |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 | 202 |
| 202 class LoadICState final BASE_EMBEDDED { | 203 class LoadICState final BASE_EMBEDDED { |
| 203 private: | 204 private: |
| 204 class TypeofModeBits : public BitField<TypeofMode, 0, 1> {}; | 205 class TypeofModeBits : public BitField<TypeofMode, 0, 1> {}; |
| 205 STATIC_ASSERT(static_cast<int>(INSIDE_TYPEOF) == 0); | 206 STATIC_ASSERT(static_cast<int>(INSIDE_TYPEOF) == 0); |
| 206 const ExtraICState state_; | 207 const ExtraICState state_; |
| 207 | 208 |
| 208 public: | 209 public: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 << LanguageModeState::kShift; | 250 << LanguageModeState::kShift; |
| 250 | 251 |
| 251 private: | 252 private: |
| 252 const ExtraICState state_; | 253 const ExtraICState state_; |
| 253 }; | 254 }; |
| 254 | 255 |
| 255 } // namespace internal | 256 } // namespace internal |
| 256 } // namespace v8 | 257 } // namespace v8 |
| 257 | 258 |
| 258 #endif // V8_IC_STATE_H_ | 259 #endif // V8_IC_STATE_H_ |
| OLD | NEW |