| 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 void lock_cmpxchgq(const Address& address, Register reg) { | 482 void lock_cmpxchgq(const Address& address, Register reg) { |
| 483 lock(); | 483 lock(); |
| 484 cmpxchgq(address, reg); | 484 cmpxchgq(address, reg); |
| 485 } | 485 } |
| 486 | 486 |
| 487 /* | 487 /* |
| 488 * Macros for High-level operations. | 488 * Macros for High-level operations. |
| 489 */ | 489 */ |
| 490 void AddImmediate(Register reg, const Immediate& imm); | 490 void AddImmediate(Register reg, const Immediate& imm); |
| 491 | 491 |
| 492 void Drop(intptr_t stack_elements); |
| 493 |
| 492 void LoadObject(Register dst, const Object& object); | 494 void LoadObject(Register dst, const Object& object); |
| 493 void PushObject(const Object& object); | 495 void PushObject(const Object& object); |
| 494 void CompareObject(Register reg, const Object& object); | 496 void CompareObject(Register reg, const Object& object); |
| 495 void LoadDoubleConstant(XmmRegister dst, double value); | 497 void LoadDoubleConstant(XmmRegister dst, double value); |
| 496 | 498 |
| 497 void StoreIntoObject(Register object, // Object we are storing into. | 499 void StoreIntoObject(Register object, // Object we are storing into. |
| 498 const FieldAddress& dest, // Where we are storing into. | 500 const FieldAddress& dest, // Where we are storing into. |
| 499 Register value); // Value we are storing. | 501 Register value); // Value we are storing. |
| 500 | 502 |
| 501 void DoubleNegate(XmmRegister d); | 503 void DoubleNegate(XmmRegister d); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 } | 613 } |
| 612 | 614 |
| 613 | 615 |
| 614 inline void Assembler::EmitOperandSizeOverride() { | 616 inline void Assembler::EmitOperandSizeOverride() { |
| 615 EmitUint8(0x66); | 617 EmitUint8(0x66); |
| 616 } | 618 } |
| 617 | 619 |
| 618 } // namespace dart | 620 } // namespace dart |
| 619 | 621 |
| 620 #endif // VM_ASSEMBLER_X64_H_ | 622 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |