| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 EmitOperand(0, operand); | 317 EmitOperand(0, operand); |
| 318 EmitImmediate(imm); | 318 EmitImmediate(imm); |
| 319 } else { | 319 } else { |
| 320 movq(TMP, imm); | 320 movq(TMP, imm); |
| 321 movq(dst, TMP); | 321 movq(dst, TMP); |
| 322 } | 322 } |
| 323 } | 323 } |
| 324 | 324 |
| 325 | 325 |
| 326 void Assembler::movsxl(Register dst, const Address& src) { | 326 void Assembler::movsxl(Register dst, const Address& src) { |
| 327 UNIMPLEMENTED(); | 327 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 328 EmitOperandREX(dst, src, REX_W); |
| 329 EmitUint8(0x63); |
| 330 EmitOperand(dst & 7, src); |
| 328 } | 331 } |
| 329 | 332 |
| 330 | 333 |
| 331 void Assembler::leaq(Register dst, const Address& src) { | 334 void Assembler::leaq(Register dst, const Address& src) { |
| 332 AssemblerBuffer::EnsureCapacity ensured(&buffer_); | 335 AssemblerBuffer::EnsureCapacity ensured(&buffer_); |
| 333 EmitOperandREX(dst, src, REX_W); | 336 EmitOperandREX(dst, src, REX_W); |
| 334 EmitUint8(0x8D); | 337 EmitUint8(0x8D); |
| 335 EmitOperand(dst & 7, src); | 338 EmitOperand(dst & 7, src); |
| 336 } | 339 } |
| 337 | 340 |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 comments.SetCommentAt(i, comments_[i]->comment()); | 1641 comments.SetCommentAt(i, comments_[i]->comment()); |
| 1639 } | 1642 } |
| 1640 | 1643 |
| 1641 return comments; | 1644 return comments; |
| 1642 } | 1645 } |
| 1643 | 1646 |
| 1644 | 1647 |
| 1645 } // namespace dart | 1648 } // namespace dart |
| 1646 | 1649 |
| 1647 #endif // defined TARGET_ARCH_X64 | 1650 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |