| 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 551 |
| 552 void LockCmpxchgl(const Address& address, Register reg) { | 552 void LockCmpxchgl(const Address& address, Register reg) { |
| 553 lock(); | 553 lock(); |
| 554 cmpxchgl(address, reg); | 554 cmpxchgl(address, reg); |
| 555 } | 555 } |
| 556 | 556 |
| 557 void EnterFrame(intptr_t frame_space); | 557 void EnterFrame(intptr_t frame_space); |
| 558 void LeaveFrame(); | 558 void LeaveFrame(); |
| 559 void ReserveAlignedFrameSpace(intptr_t frame_space); | 559 void ReserveAlignedFrameSpace(intptr_t frame_space); |
| 560 | 560 |
| 561 // Preserve and restore caller save registers according to the C ABI. | 561 // Create a frame for calling into runtime that preserves all volatile |
| 562 void PreserveCallerSavedRegisters(); | 562 // registers. Frame's RSP is guaranteed to be correctly aligned and |
| 563 void RestoreCallerSavedRegisters(); | 563 // frame_space bytes are reserved under it. |
| 564 void EnterCallRuntimeFrame(intptr_t frame_space); |
| 565 void LeaveCallRuntimeFrame(); |
| 566 |
| 564 | 567 |
| 565 void CallRuntime(const RuntimeEntry& entry); | 568 void CallRuntime(const RuntimeEntry& entry); |
| 566 | 569 |
| 567 /* | 570 /* |
| 568 * Loading and comparing classes of objects. | 571 * Loading and comparing classes of objects. |
| 569 */ | 572 */ |
| 570 void LoadClassId(Register result, Register object); | 573 void LoadClassId(Register result, Register object); |
| 571 | 574 |
| 572 void LoadClassById(Register result, Register class_id); | 575 void LoadClassById(Register result, Register class_id); |
| 573 | 576 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 } | 700 } |
| 698 | 701 |
| 699 | 702 |
| 700 inline void Assembler::EmitOperandSizeOverride() { | 703 inline void Assembler::EmitOperandSizeOverride() { |
| 701 EmitUint8(0x66); | 704 EmitUint8(0x66); |
| 702 } | 705 } |
| 703 | 706 |
| 704 } // namespace dart | 707 } // namespace dart |
| 705 | 708 |
| 706 #endif // VM_ASSEMBLER_X64_H_ | 709 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |