| 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 |
| 11 | 11 |
| 12 #include "platform/assert.h" | 12 #include "platform/assert.h" |
| 13 #include "platform/utils.h" | 13 #include "platform/utils.h" |
| 14 #include "vm/constants_mips.h" | 14 #include "vm/constants_mips.h" |
| 15 #include "vm/simulator.h" | 15 #include "vm/simulator.h" |
| 16 | 16 |
| 17 // References to documentation in this file refer to: | 17 // References to documentation in this file refer to: |
| 18 // "MIPS® Architecture For Programmers Volume I-A: | 18 // "MIPS® Architecture For Programmers Volume I-A: |
| 19 // Introduction to the MIPS32® Architecture" in short "VolI-A" | 19 // Introduction to the MIPS32® Architecture" in short "VolI-A" |
| 20 // and | 20 // and |
| 21 // "MIPS® Architecture For Programmers Volume II-A: | 21 // "MIPS® Architecture For Programmers Volume II-A: |
| 22 // The MIPS32® Instruction Set" in short "VolII-A" | 22 // The MIPS32® Instruction Set" in short "VolII-A" |
| 23 namespace dart { | 23 namespace dart { |
| 24 | 24 |
| 25 DECLARE_FLAG(bool, use_far_branches); | |
| 26 | |
| 27 // Forward declarations. | 25 // Forward declarations. |
| 28 class RuntimeEntry; | 26 class RuntimeEntry; |
| 29 | 27 |
| 30 class Immediate : public ValueObject { | 28 class Immediate : public ValueObject { |
| 31 public: | 29 public: |
| 32 explicit Immediate(int32_t value) : value_(value) { } | 30 explicit Immediate(int32_t value) : value_(value) { } |
| 33 | 31 |
| 34 Immediate(const Immediate& other) : ValueObject(), value_(other.value_) { } | 32 Immediate(const Immediate& other) : ValueObject(), value_(other.value_) { } |
| 35 Immediate& operator=(const Immediate& other) { | 33 Immediate& operator=(const Immediate& other) { |
| 36 value_ = other.value_; | 34 value_ = other.value_; |
| (...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 Register value, | 1215 Register value, |
| 1218 Label* no_update); | 1216 Label* no_update); |
| 1219 | 1217 |
| 1220 DISALLOW_ALLOCATION(); | 1218 DISALLOW_ALLOCATION(); |
| 1221 DISALLOW_COPY_AND_ASSIGN(Assembler); | 1219 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 1222 }; | 1220 }; |
| 1223 | 1221 |
| 1224 } // namespace dart | 1222 } // namespace dart |
| 1225 | 1223 |
| 1226 #endif // VM_ASSEMBLER_MIPS_H_ | 1224 #endif // VM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |