OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/ic/ic-state.h" | 5 #include "src/ic/ic-state.h" |
6 | 6 |
7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
11 | 11 |
12 // static | 12 // static |
13 void ICUtility::Clear(Isolate* isolate, Address address, | 13 void ICUtility::Clear(Isolate* isolate, Address address, |
14 Address constant_pool) { | 14 Address constant_pool) { |
15 IC::Clear(isolate, address, constant_pool); | 15 IC::Clear(isolate, address, constant_pool); |
16 } | 16 } |
17 | 17 |
18 | 18 |
19 std::ostream& operator<<(std::ostream& os, const CallICState& s) { | |
20 return os << "(" << s.convert_mode() << ", " << s.tail_call_mode() << ")"; | |
21 } | |
22 | |
23 | |
24 // static | 19 // static |
25 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN; | 20 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN; |
26 | 21 |
27 | 22 |
28 // static | 23 // static |
29 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN; | 24 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN; |
30 | 25 |
31 | 26 |
32 BinaryOpICState::BinaryOpICState(Isolate* isolate, ExtraICState extra_ic_state) | 27 BinaryOpICState::BinaryOpICState(Isolate* isolate, ExtraICState extra_ic_state) |
33 : fixed_right_arg_( | 28 : fixed_right_arg_( |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 case RECEIVER: | 517 case RECEIVER: |
523 case GENERIC: | 518 case GENERIC: |
524 return GENERIC; | 519 return GENERIC; |
525 } | 520 } |
526 UNREACHABLE(); | 521 UNREACHABLE(); |
527 return GENERIC; // Make the compiler happy. | 522 return GENERIC; // Make the compiler happy. |
528 } | 523 } |
529 | 524 |
530 } // namespace internal | 525 } // namespace internal |
531 } // namespace v8 | 526 } // namespace v8 |
OLD | NEW |