OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #ifndef SRC_VM_ASSEMBLER_ARM_H_ | 5 #ifndef SRC_VM_ASSEMBLER_ARM_H_ |
6 #define SRC_VM_ASSEMBLER_ARM_H_ | 6 #define SRC_VM_ASSEMBLER_ARM_H_ |
7 | 7 |
8 #ifndef SRC_VM_ASSEMBLER_H_ | 8 #ifndef SRC_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 |
11 | 11 |
12 #include "src/shared/assert.h" | 12 #include "src/shared/assert.h" |
13 #include "src/shared/utils.h" | 13 #include "src/shared/utils.h" |
14 | 14 |
15 namespace fletch { | 15 namespace dartino { |
16 | 16 |
17 enum Register { | 17 enum Register { |
18 R0 = 0, | 18 R0 = 0, |
19 R1 = 1, | 19 R1 = 1, |
20 R2 = 2, | 20 R2 = 2, |
21 R3 = 3, | 21 R3 = 3, |
22 R4 = 4, | 22 R4 = 4, |
23 R5 = 5, | 23 R5 = 5, |
24 R6 = 6, | 24 R6 = 6, |
25 R7 = 7, | 25 R7 = 7, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 Label* Wrap(Label* label) { return label; } | 274 Label* Wrap(Label* label) { return label; } |
275 const Immediate* Wrap(const Immediate& immediate) { return &immediate; } | 275 const Immediate* Wrap(const Immediate& immediate) { return &immediate; } |
276 const Address* Wrap(const Address& address) { return &address; } | 276 const Address* Wrap(const Address& address) { return &address; } |
277 const Operand* Wrap(const Operand& operand) { return &operand; } | 277 const Operand* Wrap(const Operand& operand) { return &operand; } |
278 }; | 278 }; |
279 | 279 |
280 #undef INSTRUCTION_0 | 280 #undef INSTRUCTION_0 |
281 #undef INSTRUCTION_1 | 281 #undef INSTRUCTION_1 |
282 #undef INSTRUCTION_2 | 282 #undef INSTRUCTION_2 |
283 | 283 |
284 } // namespace fletch | 284 } // namespace dartino |
285 | 285 |
286 #endif // SRC_VM_ASSEMBLER_ARM_H_ | 286 #endif // SRC_VM_ASSEMBLER_ARM_H_ |
OLD | NEW |