| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 511 |
| 512 void LockCmpxchgl(const Address& address, Register reg) { | 512 void LockCmpxchgl(const Address& address, Register reg) { |
| 513 lock(); | 513 lock(); |
| 514 cmpxchgl(address, reg); | 514 cmpxchgl(address, reg); |
| 515 } | 515 } |
| 516 | 516 |
| 517 void EnterFrame(intptr_t frame_space); | 517 void EnterFrame(intptr_t frame_space); |
| 518 void LeaveFrame(); | 518 void LeaveFrame(); |
| 519 void ReserveAlignedFrameSpace(intptr_t frame_space); | 519 void ReserveAlignedFrameSpace(intptr_t frame_space); |
| 520 | 520 |
| 521 // Preserve and restore caller save registers according to the C ABI. |
| 522 void PreserveCallerSavedRegisters(); |
| 523 void RestoreCallerSavedRegisters(); |
| 524 |
| 521 void CallRuntime(const RuntimeEntry& entry); | 525 void CallRuntime(const RuntimeEntry& entry); |
| 522 | 526 |
| 523 /* | 527 /* |
| 524 * Loading and comparing classes of objects. | 528 * Loading and comparing classes of objects. |
| 525 */ | 529 */ |
| 526 void LoadClassId(Register result, Register object); | 530 void LoadClassId(Register result, Register object); |
| 527 | 531 |
| 528 void LoadClassById(Register result, Register class_id); | 532 void LoadClassById(Register result, Register class_id); |
| 529 | 533 |
| 530 void LoadClass(Register result, Register object); | 534 void LoadClass(Register result, Register object); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 } | 655 } |
| 652 | 656 |
| 653 | 657 |
| 654 inline void Assembler::EmitOperandSizeOverride() { | 658 inline void Assembler::EmitOperandSizeOverride() { |
| 655 EmitUint8(0x66); | 659 EmitUint8(0x66); |
| 656 } | 660 } |
| 657 | 661 |
| 658 } // namespace dart | 662 } // namespace dart |
| 659 | 663 |
| 660 #endif // VM_ASSEMBLER_X64_H_ | 664 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |