| 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 } | 494 } |
| 495 | 495 |
| 496 /* | 496 /* |
| 497 * Macros for High-level operations and implemented on all architectures. | 497 * Macros for High-level operations and implemented on all architectures. |
| 498 */ | 498 */ |
| 499 | 499 |
| 500 void CompareRegisters(Register a, Register b); | 500 void CompareRegisters(Register a, Register b); |
| 501 | 501 |
| 502 // Issues a move instruction if 'to' is not the same as 'from'. | 502 // Issues a move instruction if 'to' is not the same as 'from'. |
| 503 void MoveRegister(Register to, Register from); | 503 void MoveRegister(Register to, Register from); |
| 504 void PushRegister(Register r); |
| 505 void PopRegister(Register r); |
| 504 | 506 |
| 505 void AddImmediate(Register reg, const Immediate& imm); | 507 void AddImmediate(Register reg, const Immediate& imm); |
| 506 | 508 |
| 507 void Drop(intptr_t stack_elements); | 509 void Drop(intptr_t stack_elements); |
| 508 | 510 |
| 509 void LoadObject(Register dst, const Object& object); | 511 void LoadObject(Register dst, const Object& object); |
| 510 void PushObject(const Object& object); | 512 void PushObject(const Object& object); |
| 511 void CompareObject(Register reg, const Object& object); | 513 void CompareObject(Register reg, const Object& object); |
| 512 void LoadDoubleConstant(XmmRegister dst, double value); | 514 void LoadDoubleConstant(XmmRegister dst, double value); |
| 513 | 515 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 } | 661 } |
| 660 | 662 |
| 661 | 663 |
| 662 inline void Assembler::EmitOperandSizeOverride() { | 664 inline void Assembler::EmitOperandSizeOverride() { |
| 663 EmitUint8(0x66); | 665 EmitUint8(0x66); |
| 664 } | 666 } |
| 665 | 667 |
| 666 } // namespace dart | 668 } // namespace dart |
| 667 | 669 |
| 668 #endif // VM_ASSEMBLER_X64_H_ | 670 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |