| 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_CONSTANTS_MIPS_H_ | 5 #ifndef VM_CONSTANTS_MIPS_H_ |
| 6 #define VM_CONSTANTS_MIPS_H_ | 6 #define VM_CONSTANTS_MIPS_H_ |
| 7 | 7 |
| 8 namespace dart { | 8 namespace dart { |
| 9 | 9 |
| 10 enum Register { | 10 enum Register { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 static const int kLastParamSlotIndex = 3; | 176 static const int kLastParamSlotIndex = 3; |
| 177 static const int kFirstLocalSlotIndex = -2; | 177 static const int kFirstLocalSlotIndex = -2; |
| 178 | 178 |
| 179 | 179 |
| 180 // Values for the condition field. | 180 // Values for the condition field. |
| 181 // There is no condition field on MIPS, but Conditions are used and passed | 181 // There is no condition field on MIPS, but Conditions are used and passed |
| 182 // around by the intermediate language, so we need them here, too. | 182 // around by the intermediate language, so we need them here, too. |
| 183 enum Condition { | 183 enum Condition { |
| 184 EQ, // equal | 184 EQ, // equal |
| 185 NE, // not equal | 185 NE, // not equal |
| 186 GT, // greater than |
| 187 GE, // greater equal |
| 188 LT, // less than |
| 189 LE, // less equal |
| 190 VS, // overflow |
| 186 }; | 191 }; |
| 187 | 192 |
| 188 | 193 |
| 189 // Constants used for the decoding or encoding of the individual fields of | 194 // Constants used for the decoding or encoding of the individual fields of |
| 190 // instructions. Based on the "Table 4.25 CPU Instruction Format Fields". | 195 // instructions. Based on the "Table 4.25 CPU Instruction Format Fields". |
| 191 enum InstructionFields { | 196 enum InstructionFields { |
| 192 kOpcodeShift = 26, | 197 kOpcodeShift = 26, |
| 193 kOpcodeBits = 6, | 198 kOpcodeBits = 6, |
| 194 kRsShift = 21, | 199 kRsShift = 21, |
| 195 kRsBits = 5, | 200 kRsBits = 5, |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } | 481 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } |
| 477 | 482 |
| 478 private: | 483 private: |
| 479 DISALLOW_ALLOCATION(); | 484 DISALLOW_ALLOCATION(); |
| 480 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 485 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 481 }; | 486 }; |
| 482 | 487 |
| 483 } // namespace dart | 488 } // namespace dart |
| 484 | 489 |
| 485 #endif // VM_CONSTANTS_MIPS_H_ | 490 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |