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_H_ | 5 #ifndef V8_IC_H_ |
6 #define V8_IC_H_ | 6 #define V8_IC_H_ |
7 | 7 |
8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0); | 399 STATIC_ASSERT(static_cast<int>(NOT_CONTEXTUAL) == 0); |
400 | 400 |
401 enum RegisterInfo { | 401 enum RegisterInfo { |
402 kReceiverIndex, | 402 kReceiverIndex, |
403 kNameIndex, | 403 kNameIndex, |
404 kRegisterArgumentCount | 404 kRegisterArgumentCount |
405 }; | 405 }; |
406 static const Register ReceiverRegister(); | 406 static const Register ReceiverRegister(); |
407 static const Register NameRegister(); | 407 static const Register NameRegister(); |
408 | 408 |
| 409 // With flag vector-ics, there is an additional argument |
| 410 static const Register SlotRegister(); |
| 411 |
409 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) { | 412 static ExtraICState ComputeExtraICState(ContextualMode contextual_mode) { |
410 return ContextualModeBits::encode(contextual_mode); | 413 return ContextualModeBits::encode(contextual_mode); |
411 } | 414 } |
412 | 415 |
413 static ContextualMode GetContextualMode(ExtraICState state) { | 416 static ContextualMode GetContextualMode(ExtraICState state) { |
414 return ContextualModeBits::decode(state); | 417 return ContextualModeBits::decode(state); |
415 } | 418 } |
416 | 419 |
417 ContextualMode contextual_mode() const { | 420 ContextualMode contextual_mode() const { |
418 return ContextualModeBits::decode(extra_ic_state()); | 421 return ContextualModeBits::decode(extra_ic_state()); |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); | 1025 DECLARE_RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss); |
1023 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); | 1026 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_Miss); |
1024 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); | 1027 DECLARE_RUNTIME_FUNCTION(BinaryOpIC_MissWithAllocationSite); |
1025 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); | 1028 DECLARE_RUNTIME_FUNCTION(CompareNilIC_Miss); |
1026 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); | 1029 DECLARE_RUNTIME_FUNCTION(ToBooleanIC_Miss); |
1027 | 1030 |
1028 | 1031 |
1029 } } // namespace v8::internal | 1032 } } // namespace v8::internal |
1030 | 1033 |
1031 #endif // V8_IC_H_ | 1034 #endif // V8_IC_H_ |
OLD | NEW |