| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #ifndef VM_ASSEMBLER_X64_H_ | 5 #ifndef VM_ASSEMBLER_X64_H_ |
| 6 #define VM_ASSEMBLER_X64_H_ | 6 #define VM_ASSEMBLER_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_x64.h directly; use assembler.h instead. | 9 #error Do not include assembler_x64.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 cmpxchgl(address, reg); | 487 cmpxchgl(address, reg); |
| 488 } | 488 } |
| 489 | 489 |
| 490 void cmpxchgq(const Address& address, Register reg); | 490 void cmpxchgq(const Address& address, Register reg); |
| 491 void lock_cmpxchgq(const Address& address, Register reg) { | 491 void lock_cmpxchgq(const Address& address, Register reg) { |
| 492 lock(); | 492 lock(); |
| 493 cmpxchgq(address, reg); | 493 cmpxchgq(address, reg); |
| 494 } | 494 } |
| 495 | 495 |
| 496 // Issue memory to memory move through a TMP register. | 496 // Issue memory to memory move through a TMP register. |
| 497 void MoveMemory(const Address& dst, const Address& src) { | 497 void MoveMemoryToMemory(const Address& dst, const Address& src) { |
| 498 movq(TMP, src); | 498 movq(TMP, src); |
| 499 movq(dst, TMP); | 499 movq(dst, TMP); |
| 500 } | 500 } |
| 501 | 501 |
| 502 void Exchange(Register reg, const Address& mem) { | 502 void Exchange(Register reg, const Address& mem) { |
| 503 movq(TMP, mem); | 503 movq(TMP, mem); |
| 504 movq(mem, reg); | 504 movq(mem, reg); |
| 505 movq(reg, TMP); | 505 movq(reg, TMP); |
| 506 } | 506 } |
| 507 | 507 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 } | 697 } |
| 698 | 698 |
| 699 | 699 |
| 700 inline void Assembler::EmitOperandSizeOverride() { | 700 inline void Assembler::EmitOperandSizeOverride() { |
| 701 EmitUint8(0x66); | 701 EmitUint8(0x66); |
| 702 } | 702 } |
| 703 | 703 |
| 704 } // namespace dart | 704 } // namespace dart |
| 705 | 705 |
| 706 #endif // VM_ASSEMBLER_X64_H_ | 706 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |