| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 2943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 | 2954 |
| 2955 void Assembler::UpdateRangeFeedback(Register value, | 2955 void Assembler::UpdateRangeFeedback(Register value, |
| 2956 intptr_t index, | 2956 intptr_t index, |
| 2957 Register ic_data, | 2957 Register ic_data, |
| 2958 Register scratch1, | 2958 Register scratch1, |
| 2959 Register scratch2, | 2959 Register scratch2, |
| 2960 Register scratch3, | 2960 Register scratch3, |
| 2961 Label* miss) { | 2961 Label* miss) { |
| 2962 ASSERT(ICData::IsValidRangeFeedbackIndex(index)); | 2962 ASSERT(ICData::IsValidRangeFeedbackIndex(index)); |
| 2963 ComputeRange(scratch1, value, scratch2, scratch3, miss); | 2963 ComputeRange(scratch1, value, scratch2, scratch3, miss); |
| 2964 if (index != 0) { | 2964 shll(scratch1, Immediate(ICData::RangeFeedbackShift(index))); |
| 2965 shll(scratch1, Immediate(ICData::kBitsPerRangeFeedback * index)); | 2965 orl(FieldAddress(ic_data, ICData::state_bits_offset()), scratch1); |
| 2966 } | |
| 2967 orl(FieldAddress(ic_data, ICData::range_feedback_offset()), scratch1); | |
| 2968 } | 2966 } |
| 2969 | 2967 |
| 2970 | 2968 |
| 2971 Address Assembler::ElementAddressForIntIndex(bool is_external, | 2969 Address Assembler::ElementAddressForIntIndex(bool is_external, |
| 2972 intptr_t cid, | 2970 intptr_t cid, |
| 2973 intptr_t index_scale, | 2971 intptr_t index_scale, |
| 2974 Register array, | 2972 Register array, |
| 2975 intptr_t index) { | 2973 intptr_t index) { |
| 2976 if (is_external) { | 2974 if (is_external) { |
| 2977 return Address(array, index * index_scale); | 2975 return Address(array, index * index_scale); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3036 | 3034 |
| 3037 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3035 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3038 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3036 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3039 return xmm_reg_names[reg]; | 3037 return xmm_reg_names[reg]; |
| 3040 } | 3038 } |
| 3041 | 3039 |
| 3042 | 3040 |
| 3043 } // namespace dart | 3041 } // namespace dart |
| 3044 | 3042 |
| 3045 #endif // defined TARGET_ARCH_IA32 | 3043 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |