| 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 | |
| 147 class Assembler : public ValueObject { | 138 class Assembler : public ValueObject { |
| 148 public: | 139 public: |
| 149 explicit Assembler(bool use_far_branches = false) | 140 explicit Assembler(bool use_far_branches = false) |
| 150 : buffer_(), | 141 : buffer_(), |
| 151 object_pool_(GrowableObjectArray::Handle()), | 142 object_pool_(GrowableObjectArray::Handle()), |
| 152 prologue_offset_(-1), | 143 prologue_offset_(-1), |
| 153 use_far_branches_(use_far_branches), | 144 use_far_branches_(use_far_branches), |
| 154 delay_slot_available_(false), | 145 delay_slot_available_(false), |
| 155 in_delay_slot_(false), | 146 in_delay_slot_(false), |
| 156 comments_() { } | 147 comments_() { } |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 Register value, | 1300 Register value, |
| 1310 Label* no_update); | 1301 Label* no_update); |
| 1311 | 1302 |
| 1312 DISALLOW_ALLOCATION(); | 1303 DISALLOW_ALLOCATION(); |
| 1313 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1304 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1314 }; | 1305 }; |
| 1315 | 1306 |
| 1316 } // namespace dart | 1307 } // namespace dart |
| 1317 | 1308 |
| 1318 #endif // VM_ASSEMBLER_MIPS_H_ | 1309 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |