| 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_ARM_H_ | 5 #ifndef VM_ASSEMBLER_ARM_H_ |
| 6 #define VM_ASSEMBLER_ARM_H_ | 6 #define VM_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_arm.h directly; use assembler.h instead. | 9 #error Do not include assembler_arm.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 void Vdivqs(QRegister qd, QRegister qn, QRegister qm); | 715 void Vdivqs(QRegister qd, QRegister qn, QRegister qm); |
| 716 | 716 |
| 717 void SmiTag(Register reg, Condition cond = AL) { | 717 void SmiTag(Register reg, Condition cond = AL) { |
| 718 Lsl(reg, reg, kSmiTagSize, cond); | 718 Lsl(reg, reg, kSmiTagSize, cond); |
| 719 } | 719 } |
| 720 | 720 |
| 721 void SmiUntag(Register reg, Condition cond = AL) { | 721 void SmiUntag(Register reg, Condition cond = AL) { |
| 722 Asr(reg, reg, kSmiTagSize, cond); | 722 Asr(reg, reg, kSmiTagSize, cond); |
| 723 } | 723 } |
| 724 | 724 |
| 725 void SmiUntag(Register dst, Register src, Condition cond = AL) { |
| 726 Asr(dst, src, kSmiTagSize, cond); |
| 727 } |
| 728 |
| 725 // Function frame setup and tear down. | 729 // Function frame setup and tear down. |
| 726 void EnterFrame(RegList regs, intptr_t frame_space); | 730 void EnterFrame(RegList regs, intptr_t frame_space); |
| 727 void LeaveFrame(RegList regs); | 731 void LeaveFrame(RegList regs); |
| 728 void Ret(); | 732 void Ret(); |
| 729 void ReserveAlignedFrameSpace(intptr_t frame_space); | 733 void ReserveAlignedFrameSpace(intptr_t frame_space); |
| 730 | 734 |
| 731 // Create a frame for calling into runtime that preserves all volatile | 735 // Create a frame for calling into runtime that preserves all volatile |
| 732 // registers. Frame's SP is guaranteed to be correctly aligned and | 736 // registers. Frame's SP is guaranteed to be correctly aligned and |
| 733 // frame_space bytes are reserved under it. | 737 // frame_space bytes are reserved under it. |
| 734 void EnterCallRuntimeFrame(intptr_t frame_space); | 738 void EnterCallRuntimeFrame(intptr_t frame_space); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 Register value, | 925 Register value, |
| 922 Label* no_update); | 926 Label* no_update); |
| 923 | 927 |
| 924 DISALLOW_ALLOCATION(); | 928 DISALLOW_ALLOCATION(); |
| 925 DISALLOW_COPY_AND_ASSIGN(Assembler); | 929 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 926 }; | 930 }; |
| 927 | 931 |
| 928 } // namespace dart | 932 } // namespace dart |
| 929 | 933 |
| 930 #endif // VM_ASSEMBLER_ARM_H_ | 934 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |