| 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 ExtraICState CallICState::GetExtraICState() const { | |
| 20 ExtraICState extra_ic_state = ArgcBits::encode(argc_); | |
| 21 return extra_ic_state; | |
| 22 } | |
| 23 | |
| 24 | |
| 25 std::ostream& operator<<(std::ostream& os, const CallICState& s) { | 19 std::ostream& operator<<(std::ostream& os, const CallICState& s) { |
| 26 return os << "(args(" << s.arg_count() << "), " | 20 return os << "(args(" << s.argc() << "), " << s.convert_mode() << ", "; |
| 27 << ", "; | |
| 28 } | 21 } |
| 29 | 22 |
| 30 | 23 |
| 31 // static | 24 // static |
| 32 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN; | 25 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN; |
| 33 | 26 |
| 34 | 27 |
| 35 // static | 28 // static |
| 36 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN; | 29 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN; |
| 37 | 30 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 case OBJECT: | 501 case OBJECT: |
| 509 case GENERIC: | 502 case GENERIC: |
| 510 return GENERIC; | 503 return GENERIC; |
| 511 } | 504 } |
| 512 UNREACHABLE(); | 505 UNREACHABLE(); |
| 513 return GENERIC; // Make the compiler happy. | 506 return GENERIC; // Make the compiler happy. |
| 514 } | 507 } |
| 515 | 508 |
| 516 } // namespace internal | 509 } // namespace internal |
| 517 } // namespace v8 | 510 } // namespace v8 |
| OLD | NEW |