| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 EmitUint8(0x57); | 547 EmitUint8(0x57); |
| 548 EmitOperand(dst & 7, src); | 548 EmitOperand(dst & 7, src); |
| 549 } | 549 } |
| 550 | 550 |
| 551 | 551 |
| 552 void Assembler::cvtsi2sd(XmmRegister dst, Register src) { | 552 void Assembler::cvtsi2sd(XmmRegister dst, Register src) { |
| 553 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 553 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 554 ASSERT(dst <= XMM7); | 554 ASSERT(dst <= XMM7); |
| 555 Operand operand(src); | 555 Operand operand(src); |
| 556 EmitUint8(0xF2); | 556 EmitUint8(0xF2); |
| 557 EmitOperandREX(0, operand, REX_NONE); | 557 EmitOperandREX(0, operand, REX_W); |
| 558 EmitUint8(0x0F); | 558 EmitUint8(0x0F); |
| 559 EmitUint8(0x2A); | 559 EmitUint8(0x2A); |
| 560 EmitOperand(dst, operand); | 560 EmitOperand(dst, operand); |
| 561 } | 561 } |
| 562 | 562 |
| 563 | 563 |
| 564 void Assembler::xchgl(Register dst, Register src) { | 564 void Assembler::xchgl(Register dst, Register src) { |
| 565 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 565 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 566 Operand operand(src); | 566 Operand operand(src); |
| 567 EmitOperandREX(dst, operand, REX_NONE); | 567 EmitOperandREX(dst, operand, REX_NONE); |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 comments.SetCommentAt(i, comments_[i]->comment()); | 1653 comments.SetCommentAt(i, comments_[i]->comment()); |
| 1654 } | 1654 } |
| 1655 | 1655 |
| 1656 return comments; | 1656 return comments; |
| 1657 } | 1657 } |
| 1658 | 1658 |
| 1659 | 1659 |
| 1660 } // namespace dart | 1660 } // namespace dart |
| 1661 | 1661 |
| 1662 #endif // defined TARGET_ARCH_X64 | 1662 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |