| 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" | 5 #include "vm/globals.h" |
| 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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 | 1048 |
| 1049 | 1049 |
| 1050 void Assembler::divpd(XmmRegister dst, XmmRegister src) { | 1050 void Assembler::divpd(XmmRegister dst, XmmRegister src) { |
| 1051 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 1051 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 1052 ASSERT(src <= XMM15); | 1052 ASSERT(src <= XMM15); |
| 1053 ASSERT(dst <= XMM15); | 1053 ASSERT(dst <= XMM15); |
| 1054 EmitUint8(0x66); | 1054 EmitUint8(0x66); |
| 1055 EmitREX_RB(dst, src); | 1055 EmitREX_RB(dst, src); |
| 1056 EmitUint8(0x0F); | 1056 EmitUint8(0x0F); |
| 1057 EmitUint8(0x5E); | 1057 EmitUint8(0x5E); |
| 1058 EmitXmmRegisterOperand(dst & 6, src); | 1058 EmitXmmRegisterOperand(dst & 7, src); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 | 1061 |
| 1062 void Assembler::abspd(XmmRegister dst) { | 1062 void Assembler::abspd(XmmRegister dst) { |
| 1063 static const struct ALIGN16 { | 1063 static const struct ALIGN16 { |
| 1064 uint64_t a; | 1064 uint64_t a; |
| 1065 uint64_t b; | 1065 uint64_t b; |
| 1066 } double_absolute_const = | 1066 } double_absolute_const = |
| 1067 { 0x7FFFFFFFFFFFFFFFLL, 0x7FFFFFFFFFFFFFFFLL }; | 1067 { 0x7FFFFFFFFFFFFFFFLL, 0x7FFFFFFFFFFFFFFFLL }; |
| 1068 LoadImmediate( | 1068 LoadImmediate( |
| (...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3264 | 3264 |
| 3265 | 3265 |
| 3266 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 3266 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 3267 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 3267 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 3268 return xmm_reg_names[reg]; | 3268 return xmm_reg_names[reg]; |
| 3269 } | 3269 } |
| 3270 | 3270 |
| 3271 } // namespace dart | 3271 } // namespace dart |
| 3272 | 3272 |
| 3273 #endif // defined TARGET_ARCH_X64 | 3273 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |