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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 void DoubleNegate(XmmRegister d); | 707 void DoubleNegate(XmmRegister d); |
708 void FloatNegate(XmmRegister f); | 708 void FloatNegate(XmmRegister f); |
709 | 709 |
710 void DoubleAbs(XmmRegister reg); | 710 void DoubleAbs(XmmRegister reg); |
711 | 711 |
712 void LockCmpxchgl(const Address& address, Register reg) { | 712 void LockCmpxchgl(const Address& address, Register reg) { |
713 lock(); | 713 lock(); |
714 cmpxchgl(address, reg); | 714 cmpxchgl(address, reg); |
715 } | 715 } |
716 | 716 |
| 717 void PushRegisters(intptr_t cpu_register_set, intptr_t xmm_register_set); |
| 718 void PopRegisters(intptr_t cpu_register_set, intptr_t xmm_register_set); |
| 719 |
717 void EnterFrame(intptr_t frame_space); | 720 void EnterFrame(intptr_t frame_space); |
718 void LeaveFrame(); | 721 void LeaveFrame(); |
719 void ReserveAlignedFrameSpace(intptr_t frame_space); | 722 void ReserveAlignedFrameSpace(intptr_t frame_space); |
720 | 723 |
721 // Create a frame for calling into runtime that preserves all volatile | 724 // Create a frame for calling into runtime that preserves all volatile |
722 // registers. Frame's RSP is guaranteed to be correctly aligned and | 725 // registers. Frame's RSP is guaranteed to be correctly aligned and |
723 // frame_space bytes are reserved under it. | 726 // frame_space bytes are reserved under it. |
724 void EnterCallRuntimeFrame(intptr_t frame_space); | 727 void EnterCallRuntimeFrame(intptr_t frame_space); |
725 void LeaveCallRuntimeFrame(); | 728 void LeaveCallRuntimeFrame(); |
726 | 729 |
727 void CallRuntime(const RuntimeEntry& entry, intptr_t argument_count); | 730 void CallRuntime(const RuntimeEntry& entry, intptr_t argument_count); |
728 | 731 |
| 732 // Call runtime function. Reserves shadow space on the stack before calling |
| 733 // if platform ABI requires that. Does not restore RSP after the call itself. |
| 734 void CallCFunction(const ExternalLabel* label); |
| 735 void CallCFunction(Register reg); |
| 736 |
729 /* | 737 /* |
730 * Loading and comparing classes of objects. | 738 * Loading and comparing classes of objects. |
731 */ | 739 */ |
732 void LoadClassId(Register result, Register object); | 740 void LoadClassId(Register result, Register object); |
733 | 741 |
734 void LoadClassById(Register result, Register class_id); | 742 void LoadClassById(Register result, Register class_id); |
735 | 743 |
736 void LoadClass(Register result, Register object); | 744 void LoadClass(Register result, Register object); |
737 | 745 |
738 void CompareClassId(Register object, intptr_t class_id); | 746 void CompareClassId(Register object, intptr_t class_id); |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 } | 1075 } |
1068 | 1076 |
1069 | 1077 |
1070 inline void Assembler::EmitOperandSizeOverride() { | 1078 inline void Assembler::EmitOperandSizeOverride() { |
1071 EmitUint8(0x66); | 1079 EmitUint8(0x66); |
1072 } | 1080 } |
1073 | 1081 |
1074 } // namespace dart | 1082 } // namespace dart |
1075 | 1083 |
1076 #endif // VM_ASSEMBLER_X64_H_ | 1084 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |