| 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 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 | 13 |
| 14 const int kMaxKeyedPolymorphism = 4; | 14 const int kMaxKeyedPolymorphism = 4; |
| 15 | 15 |
| 16 | 16 |
| 17 class ICUtility : public AllStatic { | 17 class ICUtility : public AllStatic { |
| 18 public: | 18 public: |
| 19 // Clear the inline cache to initial state. | 19 // Clear the inline cache to initial state. |
| 20 static void Clear(Isolate* isolate, Address address, | 20 static void Clear(Isolate* isolate, Address address, Address constant_pool); |
| 21 ConstantPoolArray* constant_pool); | |
| 22 }; | 21 }; |
| 23 | 22 |
| 24 | 23 |
| 25 class CallICState final BASE_EMBEDDED { | 24 class CallICState final BASE_EMBEDDED { |
| 26 public: | 25 public: |
| 27 explicit CallICState(ExtraICState extra_ic_state); | 26 explicit CallICState(ExtraICState extra_ic_state); |
| 28 | 27 |
| 29 enum CallType { METHOD, FUNCTION }; | 28 enum CallType { METHOD, FUNCTION }; |
| 30 | 29 |
| 31 CallICState(int argc, CallType call_type) | 30 CallICState(int argc, CallType call_type) |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 static const ExtraICState kStrictModeState = STRICT | 250 static const ExtraICState kStrictModeState = STRICT |
| 252 << LanguageModeState::kShift; | 251 << LanguageModeState::kShift; |
| 253 | 252 |
| 254 private: | 253 private: |
| 255 const ExtraICState state_; | 254 const ExtraICState state_; |
| 256 }; | 255 }; |
| 257 } | 256 } |
| 258 } | 257 } |
| 259 | 258 |
| 260 #endif // V8_IC_STATE_H_ | 259 #endif // V8_IC_STATE_H_ |
| OLD | NEW |