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_MIPS_H_ | 5 #ifndef VM_ASSEMBLER_MIPS_H_ |
6 #define VM_ASSEMBLER_MIPS_H_ | 6 #define VM_ASSEMBLER_MIPS_H_ |
7 | 7 |
8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
9 #error Do not include assembler_mips.h directly; use assembler.h instead. | 9 #error Do not include assembler_mips.h directly; use assembler.h instead. |
10 #endif | 10 #endif |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 ASSERT(!IsBound()); | 128 ASSERT(!IsBound()); |
129 position_ = position + kWordSize; | 129 position_ = position + kWordSize; |
130 ASSERT(IsLinked()); | 130 ASSERT(IsLinked()); |
131 } | 131 } |
132 | 132 |
133 friend class Assembler; | 133 friend class Assembler; |
134 DISALLOW_COPY_AND_ASSIGN(Label); | 134 DISALLOW_COPY_AND_ASSIGN(Label); |
135 }; | 135 }; |
136 | 136 |
137 | 137 |
| 138 class CPUFeatures : public AllStatic { |
| 139 public: |
| 140 static void InitOnce() { } |
| 141 static bool double_truncate_round_supported() { |
| 142 return false; |
| 143 } |
| 144 }; |
| 145 |
| 146 |
138 class Assembler : public ValueObject { | 147 class Assembler : public ValueObject { |
139 public: | 148 public: |
140 explicit Assembler(bool use_far_branches = false) | 149 explicit Assembler(bool use_far_branches = false) |
141 : buffer_(), | 150 : buffer_(), |
142 object_pool_(GrowableObjectArray::Handle()), | 151 object_pool_(GrowableObjectArray::Handle()), |
143 prologue_offset_(-1), | 152 prologue_offset_(-1), |
144 use_far_branches_(use_far_branches), | 153 use_far_branches_(use_far_branches), |
145 delay_slot_available_(false), | 154 delay_slot_available_(false), |
146 in_delay_slot_(false), | 155 in_delay_slot_(false), |
147 comments_() { } | 156 comments_() { } |
(...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 Register value, | 1309 Register value, |
1301 Label* no_update); | 1310 Label* no_update); |
1302 | 1311 |
1303 DISALLOW_ALLOCATION(); | 1312 DISALLOW_ALLOCATION(); |
1304 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1313 DISALLOW_COPY_AND_ASSIGN(Assembler); |
1305 }; | 1314 }; |
1306 | 1315 |
1307 } // namespace dart | 1316 } // namespace dart |
1308 | 1317 |
1309 #endif // VM_ASSEMBLER_MIPS_H_ | 1318 #endif // VM_ASSEMBLER_MIPS_H_ |
OLD | NEW |