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_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 |
11 | 11 |
12 #include "platform/assert.h" | 12 #include "platform/assert.h" |
13 #include "vm/constants_arm.h" | 13 #include "vm/constants_arm.h" |
14 | 14 |
15 namespace dart { | 15 namespace dart { |
16 | 16 |
17 #if defined(TESTING) || defined(DEBUG) | |
18 | |
19 #define CHECK_STACK_ALIGNMENT { \ | |
20 UNIMPLEMENTED(); \ | |
21 } | |
22 | |
23 #else | |
24 | |
25 #define CHECK_STACK_ALIGNMENT { } | |
26 | |
27 #endif | |
28 | |
29 | |
30 class Label : public ValueObject { | 17 class Label : public ValueObject { |
31 public: | 18 public: |
32 Label() : position_(0) { } | 19 Label() : position_(0) { } |
33 | 20 |
34 ~Label() { | 21 ~Label() { |
35 // Assert if label is being destroyed with unresolved branches pending. | 22 // Assert if label is being destroyed with unresolved branches pending. |
36 ASSERT(!IsLinked()); | 23 ASSERT(!IsLinked()); |
37 } | 24 } |
38 | 25 |
39 // Returns the position for bound and linked labels. Cannot be used | 26 // Returns the position for bound and linked labels. Cannot be used |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 97 |
111 private: | 98 private: |
112 ZoneGrowableArray<int>* pointer_offsets_; | 99 ZoneGrowableArray<int>* pointer_offsets_; |
113 DISALLOW_ALLOCATION(); | 100 DISALLOW_ALLOCATION(); |
114 DISALLOW_COPY_AND_ASSIGN(Assembler); | 101 DISALLOW_COPY_AND_ASSIGN(Assembler); |
115 }; | 102 }; |
116 | 103 |
117 } // namespace dart | 104 } // namespace dart |
118 | 105 |
119 #endif // VM_ASSEMBLER_ARM_H_ | 106 #endif // VM_ASSEMBLER_ARM_H_ |
OLD | NEW |