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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 } | 540 } |
541 | 541 |
542 /* | 542 /* |
543 * Macros for High-level operations and implemented on all architectures. | 543 * Macros for High-level operations and implemented on all architectures. |
544 */ | 544 */ |
545 | 545 |
546 void CompareRegisters(Register a, Register b); | 546 void CompareRegisters(Register a, Register b); |
547 | 547 |
548 // Issues a move instruction if 'to' is not the same as 'from'. | 548 // Issues a move instruction if 'to' is not the same as 'from'. |
549 void MoveRegister(Register to, Register from); | 549 void MoveRegister(Register to, Register from); |
550 void PushRegister(Register r); | |
551 void PopRegister(Register r); | 550 void PopRegister(Register r); |
552 | 551 |
553 void AddImmediate(Register reg, const Immediate& imm); | 552 void AddImmediate(Register reg, const Immediate& imm); |
554 | 553 |
555 void Drop(intptr_t stack_elements); | 554 void Drop(intptr_t stack_elements); |
556 | 555 |
557 void LoadObject(Register dst, const Object& object); | 556 void LoadObject(Register dst, const Object& object); |
558 void StoreObject(const Address& dst, const Object& obj); | 557 void StoreObject(const Address& dst, const Object& obj); |
559 void PushObject(const Object& object); | 558 void PushObject(const Object& object); |
560 void CompareObject(Register reg, const Object& object); | 559 void CompareObject(Register reg, const Object& object); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 } | 776 } |
778 | 777 |
779 | 778 |
780 inline void Assembler::EmitOperandSizeOverride() { | 779 inline void Assembler::EmitOperandSizeOverride() { |
781 EmitUint8(0x66); | 780 EmitUint8(0x66); |
782 } | 781 } |
783 | 782 |
784 } // namespace dart | 783 } // namespace dart |
785 | 784 |
786 #endif // VM_ASSEMBLER_X64_H_ | 785 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |