| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 /* | 658 /* |
| 659 * Macros for High-level operations and implemented on all architectures. | 659 * Macros for High-level operations and implemented on all architectures. |
| 660 */ | 660 */ |
| 661 | 661 |
| 662 void CompareRegisters(Register a, Register b); | 662 void CompareRegisters(Register a, Register b); |
| 663 | 663 |
| 664 // Issues a move instruction if 'to' is not the same as 'from'. | 664 // Issues a move instruction if 'to' is not the same as 'from'. |
| 665 void MoveRegister(Register to, Register from); | 665 void MoveRegister(Register to, Register from); |
| 666 void PopRegister(Register r); | 666 void PopRegister(Register r); |
| 667 | 667 |
| 668 // Macros accepting a pp Register argument may attempt to load values from |
| 669 // the object pool when possible. Unless you are sure that the untagged object |
| 670 // pool pointer is in another register, or that it is not available at all, |
| 671 // PP should be passed for pp. |
| 668 void AddImmediate(Register reg, const Immediate& imm, Register pp); | 672 void AddImmediate(Register reg, const Immediate& imm, Register pp); |
| 669 void AddImmediate(const Address& address, const Immediate& imm, Register pp); | 673 void AddImmediate(const Address& address, const Immediate& imm, Register pp); |
| 670 | 674 |
| 671 void Drop(intptr_t stack_elements); | 675 void Drop(intptr_t stack_elements); |
| 672 | 676 |
| 673 enum Patchability { | 677 enum Patchability { |
| 674 kPatchable, | 678 kPatchable, |
| 675 kNotPatchable, | 679 kNotPatchable, |
| 676 }; | 680 }; |
| 677 | 681 |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 } | 1064 } |
| 1061 | 1065 |
| 1062 | 1066 |
| 1063 inline void Assembler::EmitOperandSizeOverride() { | 1067 inline void Assembler::EmitOperandSizeOverride() { |
| 1064 EmitUint8(0x66); | 1068 EmitUint8(0x66); |
| 1065 } | 1069 } |
| 1066 | 1070 |
| 1067 } // namespace dart | 1071 } // namespace dart |
| 1068 | 1072 |
| 1069 #endif // VM_ASSEMBLER_X64_H_ | 1073 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |