| 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_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
| (...skipping 3807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3818 } | 3818 } |
| 3819 | 3819 |
| 3820 | 3820 |
| 3821 void Assembler::UpdateRangeFeedback(Register value, | 3821 void Assembler::UpdateRangeFeedback(Register value, |
| 3822 intptr_t index, | 3822 intptr_t index, |
| 3823 Register ic_data, | 3823 Register ic_data, |
| 3824 Register scratch, | 3824 Register scratch, |
| 3825 Label* miss) { | 3825 Label* miss) { |
| 3826 ASSERT(ICData::IsValidRangeFeedbackIndex(index)); | 3826 ASSERT(ICData::IsValidRangeFeedbackIndex(index)); |
| 3827 ComputeRange(scratch, value, miss); | 3827 ComputeRange(scratch, value, miss); |
| 3828 if (index != 0) { | 3828 shll(scratch, Immediate(ICData::RangeFeedbackShift(index))); |
| 3829 shll(scratch, Immediate(ICData::kBitsPerRangeFeedback * index)); | 3829 orl(FieldAddress(ic_data, ICData::state_bits_offset()), scratch); |
| 3830 } | |
| 3831 orl(FieldAddress(ic_data, ICData::range_feedback_offset()), scratch); | |
| 3832 } | 3830 } |
| 3833 | 3831 |
| 3834 | 3832 |
| 3835 Address Assembler::ElementAddressForIntIndex(bool is_external, | 3833 Address Assembler::ElementAddressForIntIndex(bool is_external, |
| 3836 intptr_t cid, | 3834 intptr_t cid, |
| 3837 intptr_t index_scale, | 3835 intptr_t index_scale, |
| 3838 Register array, | 3836 Register array, |
| 3839 intptr_t index) { | 3837 intptr_t index) { |
| 3840 if (is_external) { | 3838 if (is_external) { |
| 3841 return Address(array, index * index_scale); | 3839 return Address(array, index * index_scale); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3901 | 3899 |
| 3902 | 3900 |
| 3903 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3901 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3904 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3902 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3905 return xmm_reg_names[reg]; | 3903 return xmm_reg_names[reg]; |
| 3906 } | 3904 } |
| 3907 | 3905 |
| 3908 } // namespace dart | 3906 } // namespace dart |
| 3909 | 3907 |
| 3910 #endif // defined TARGET_ARCH_X64 | 3908 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |