| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 4225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4236 Operand operand(BuildFastArrayOperand( | 4236 Operand operand(BuildFastArrayOperand( |
| 4237 instr->elements(), | 4237 instr->elements(), |
| 4238 key, | 4238 key, |
| 4239 instr->hydrogen()->key()->representation(), | 4239 instr->hydrogen()->key()->representation(), |
| 4240 elements_kind, | 4240 elements_kind, |
| 4241 instr->base_offset())); | 4241 instr->base_offset())); |
| 4242 | 4242 |
| 4243 if (elements_kind == FLOAT32_ELEMENTS) { | 4243 if (elements_kind == FLOAT32_ELEMENTS) { |
| 4244 XMMRegister value(ToDoubleRegister(instr->value())); | 4244 XMMRegister value(ToDoubleRegister(instr->value())); |
| 4245 __ Cvtsd2ss(value, value); | 4245 __ Cvtsd2ss(value, value); |
| 4246 __ movss(operand, value); | 4246 __ Movss(operand, value); |
| 4247 } else if (elements_kind == FLOAT64_ELEMENTS) { | 4247 } else if (elements_kind == FLOAT64_ELEMENTS) { |
| 4248 __ Movsd(operand, ToDoubleRegister(instr->value())); | 4248 __ Movsd(operand, ToDoubleRegister(instr->value())); |
| 4249 } else { | 4249 } else { |
| 4250 Register value(ToRegister(instr->value())); | 4250 Register value(ToRegister(instr->value())); |
| 4251 switch (elements_kind) { | 4251 switch (elements_kind) { |
| 4252 case INT8_ELEMENTS: | 4252 case INT8_ELEMENTS: |
| 4253 case UINT8_ELEMENTS: | 4253 case UINT8_ELEMENTS: |
| 4254 case UINT8_CLAMPED_ELEMENTS: | 4254 case UINT8_CLAMPED_ELEMENTS: |
| 4255 __ movb(operand, value); | 4255 __ movb(operand, value); |
| 4256 break; | 4256 break; |
| (...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5904 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5904 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5905 } | 5905 } |
| 5906 | 5906 |
| 5907 | 5907 |
| 5908 #undef __ | 5908 #undef __ |
| 5909 | 5909 |
| 5910 } // namespace internal | 5910 } // namespace internal |
| 5911 } // namespace v8 | 5911 } // namespace v8 |
| 5912 | 5912 |
| 5913 #endif // V8_TARGET_ARCH_X64 | 5913 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |