| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
| 8 #include "src/ic/ic-state.h" | 8 #include "src/ic/ic-state.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 std::ostream& operator<<(std::ostream& os, const CallICState& s) { | 32 std::ostream& operator<<(std::ostream& os, const CallICState& s) { |
| 33 return os << "(args(" << s.arg_count() << "), " | 33 return os << "(args(" << s.arg_count() << "), " |
| 34 << (s.call_type() == CallICState::METHOD ? "METHOD" : "FUNCTION") | 34 << (s.call_type() == CallICState::METHOD ? "METHOD" : "FUNCTION") |
| 35 << ", "; | 35 << ", "; |
| 36 } | 36 } |
| 37 | 37 |
| 38 | 38 |
| 39 // static |
| 40 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN; |
| 41 |
| 42 |
| 43 // static |
| 44 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN; |
| 45 |
| 46 |
| 39 BinaryOpICState::BinaryOpICState(Isolate* isolate, ExtraICState extra_ic_state) | 47 BinaryOpICState::BinaryOpICState(Isolate* isolate, ExtraICState extra_ic_state) |
| 40 : isolate_(isolate) { | 48 : isolate_(isolate) { |
| 41 op_ = | 49 op_ = |
| 42 static_cast<Token::Value>(FIRST_TOKEN + OpField::decode(extra_ic_state)); | 50 static_cast<Token::Value>(FIRST_TOKEN + OpField::decode(extra_ic_state)); |
| 43 mode_ = OverwriteModeField::decode(extra_ic_state); | 51 mode_ = OverwriteModeField::decode(extra_ic_state); |
| 44 fixed_right_arg_ = | 52 fixed_right_arg_ = |
| 45 Maybe<int>(HasFixedRightArgField::decode(extra_ic_state), | 53 Maybe<int>(HasFixedRightArgField::decode(extra_ic_state), |
| 46 1 << FixedRightArgValueField::decode(extra_ic_state)); | 54 1 << FixedRightArgValueField::decode(extra_ic_state)); |
| 47 left_kind_ = LeftKindField::decode(extra_ic_state); | 55 left_kind_ = LeftKindField::decode(extra_ic_state); |
| 48 if (fixed_right_arg_.has_value) { | 56 if (fixed_right_arg_.has_value) { |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 case UNIQUE_NAME: | 614 case UNIQUE_NAME: |
| 607 case OBJECT: | 615 case OBJECT: |
| 608 case GENERIC: | 616 case GENERIC: |
| 609 return GENERIC; | 617 return GENERIC; |
| 610 } | 618 } |
| 611 UNREACHABLE(); | 619 UNREACHABLE(); |
| 612 return GENERIC; // Make the compiler happy. | 620 return GENERIC; // Make the compiler happy. |
| 613 } | 621 } |
| 614 } | 622 } |
| 615 } // namespace v8::internal | 623 } // namespace v8::internal |
| OLD | NEW |