| 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 // Untag the value in the register assuming it is a smi. | 900 // Untag the value in the register assuming it is a smi. |
| 901 // Untagging shifts tag bit into the carry flag - if carry is clear | 901 // Untagging shifts tag bit into the carry flag - if carry is clear |
| 902 // assumption was correct. In this case jump to the is_smi label. | 902 // assumption was correct. In this case jump to the is_smi label. |
| 903 // Otherwise fall-through. | 903 // Otherwise fall-through. |
| 904 void SmiUntag(Register dst, Register src, Label* is_smi) { | 904 void SmiUntag(Register dst, Register src, Label* is_smi) { |
| 905 ASSERT(kSmiTagSize == 1); | 905 ASSERT(kSmiTagSize == 1); |
| 906 Asrs(dst, src, Operand(kSmiTagSize)); | 906 Asrs(dst, src, Operand(kSmiTagSize)); |
| 907 b(is_smi, CC); | 907 b(is_smi, CC); |
| 908 } | 908 } |
| 909 | 909 |
| 910 void BranchIfNotSmi(Register reg, Label* label) { |
| 911 tst(reg, Operand(kSmiTagMask)); |
| 912 b(label, NE); |
| 913 } |
| 914 |
| 910 void CheckCodePointer(); | 915 void CheckCodePointer(); |
| 911 | 916 |
| 912 // Function frame setup and tear down. | 917 // Function frame setup and tear down. |
| 913 void EnterFrame(RegList regs, intptr_t frame_space); | 918 void EnterFrame(RegList regs, intptr_t frame_space); |
| 914 void LeaveFrame(RegList regs); | 919 void LeaveFrame(RegList regs); |
| 915 void Ret(); | 920 void Ret(); |
| 916 void ReserveAlignedFrameSpace(intptr_t frame_space); | 921 void ReserveAlignedFrameSpace(intptr_t frame_space); |
| 917 | 922 |
| 918 // Create a frame for calling into runtime that preserves all volatile | 923 // Create a frame for calling into runtime that preserves all volatile |
| 919 // registers. Frame's SP is guaranteed to be correctly aligned and | 924 // registers. Frame's SP is guaranteed to be correctly aligned and |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 Register value, | 1167 Register value, |
| 1163 Label* no_update); | 1168 Label* no_update); |
| 1164 | 1169 |
| 1165 DISALLOW_ALLOCATION(); | 1170 DISALLOW_ALLOCATION(); |
| 1166 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1171 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1167 }; | 1172 }; |
| 1168 | 1173 |
| 1169 } // namespace dart | 1174 } // namespace dart |
| 1170 | 1175 |
| 1171 #endif // VM_ASSEMBLER_ARM_H_ | 1176 #endif // VM_ASSEMBLER_ARM_H_ |
| OLD | NEW |