| 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 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "accessors.h" | 7 #include "accessors.h" |
| 8 #include "api.h" | 8 #include "api.h" |
| 9 #include "arguments.h" | 9 #include "arguments.h" |
| 10 #include "codegen.h" | 10 #include "codegen.h" |
| (...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2034 right_kind_ = RightKindField::decode(extra_ic_state); | 2034 right_kind_ = RightKindField::decode(extra_ic_state); |
| 2035 } | 2035 } |
| 2036 result_kind_ = ResultKindField::decode(extra_ic_state); | 2036 result_kind_ = ResultKindField::decode(extra_ic_state); |
| 2037 ASSERT_LE(FIRST_TOKEN, op_); | 2037 ASSERT_LE(FIRST_TOKEN, op_); |
| 2038 ASSERT_LE(op_, LAST_TOKEN); | 2038 ASSERT_LE(op_, LAST_TOKEN); |
| 2039 } | 2039 } |
| 2040 | 2040 |
| 2041 | 2041 |
| 2042 ExtraICState BinaryOpIC::State::GetExtraICState() const { | 2042 ExtraICState BinaryOpIC::State::GetExtraICState() const { |
| 2043 bool sse2 = (Max(result_kind_, Max(left_kind_, right_kind_)) > SMI && | 2043 bool sse2 = (Max(result_kind_, Max(left_kind_, right_kind_)) > SMI && |
| 2044 CpuFeatures::IsSafeForSnapshot(SSE2)); | 2044 CpuFeatures::IsSafeForSnapshot(isolate(), SSE2)); |
| 2045 ExtraICState extra_ic_state = | 2045 ExtraICState extra_ic_state = |
| 2046 SSE2Field::encode(sse2) | | 2046 SSE2Field::encode(sse2) | |
| 2047 OpField::encode(op_ - FIRST_TOKEN) | | 2047 OpField::encode(op_ - FIRST_TOKEN) | |
| 2048 OverwriteModeField::encode(mode_) | | 2048 OverwriteModeField::encode(mode_) | |
| 2049 LeftKindField::encode(left_kind_) | | 2049 LeftKindField::encode(left_kind_) | |
| 2050 ResultKindField::encode(result_kind_) | | 2050 ResultKindField::encode(result_kind_) | |
| 2051 HasFixedRightArgField::encode(fixed_right_arg_.has_value); | 2051 HasFixedRightArgField::encode(fixed_right_arg_.has_value); |
| 2052 if (fixed_right_arg_.has_value) { | 2052 if (fixed_right_arg_.has_value) { |
| 2053 extra_ic_state = FixedRightArgValueField::update( | 2053 extra_ic_state = FixedRightArgValueField::update( |
| 2054 extra_ic_state, WhichPowerOf2(fixed_right_arg_.value)); | 2054 extra_ic_state, WhichPowerOf2(fixed_right_arg_.value)); |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2907 #undef ADDR | 2907 #undef ADDR |
| 2908 }; | 2908 }; |
| 2909 | 2909 |
| 2910 | 2910 |
| 2911 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2911 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2912 return IC_utilities[id]; | 2912 return IC_utilities[id]; |
| 2913 } | 2913 } |
| 2914 | 2914 |
| 2915 | 2915 |
| 2916 } } // namespace v8::internal | 2916 } } // namespace v8::internal |
| OLD | NEW |