| 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 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 TNEI = 14, | 371 TNEI = 14, |
| 372 BLTZAL = 16, | 372 BLTZAL = 16, |
| 373 BGEZAL = 17, | 373 BGEZAL = 17, |
| 374 BLTZALL = 18, | 374 BLTZALL = 18, |
| 375 BGEZALL = 19, | 375 BGEZALL = 19, |
| 376 SYNCI = 31, | 376 SYNCI = 31, |
| 377 }; | 377 }; |
| 378 | 378 |
| 379 | 379 |
| 380 enum Cop1Function { | 380 enum Cop1Function { |
| 381 COP1_ADD = 0, | 381 COP1_ADD = 0x00, |
| 382 COP1_MOV = 6, | 382 COP1_SUB = 0x01, |
| 383 COP1_CVT_D = 0x21, // 100001 | 383 COP1_MUL = 0x02, |
| 384 COP1_C_F = 0x30, // 110000 | 384 COP1_DIV = 0x03, |
| 385 COP1_C_UN = 0x31, // 110001 | 385 COP1_SQRT = 0x04, |
| 386 COP1_C_EQ = 0x32, // 110010 | 386 COP1_MOV = 0x06, |
| 387 COP1_C_UEQ = 0x33, // 110011 | 387 COP1_CVT_D = 0x21, |
| 388 COP1_C_OLT = 0x34, // 110100 | 388 COP1_CVT_W = 0x24, |
| 389 COP1_C_ULT = 0x35, // 110101 | 389 COP1_C_F = 0x30, |
| 390 COP1_C_OLE = 0x36, // 110110 | 390 COP1_C_UN = 0x31, |
| 391 COP1_C_ULE = 0x37, // 110111 | 391 COP1_C_EQ = 0x32, |
| 392 COP1_C_UEQ = 0x33, |
| 393 COP1_C_OLT = 0x34, |
| 394 COP1_C_ULT = 0x35, |
| 395 COP1_C_OLE = 0x36, |
| 396 COP1_C_ULE = 0x37, |
| 392 }; | 397 }; |
| 393 | 398 |
| 399 |
| 394 enum Cop1Sub { | 400 enum Cop1Sub { |
| 395 COP1_MF = 0, | 401 COP1_MF = 0, |
| 396 COP1_MT = 4, | 402 COP1_MT = 4, |
| 397 COP1_BC = 8, | 403 COP1_BC = 8, |
| 398 }; | 404 }; |
| 399 | 405 |
| 406 |
| 400 enum Format { | 407 enum Format { |
| 401 FMT_S = 16, | 408 FMT_S = 16, |
| 402 FMT_D = 17, | 409 FMT_D = 17, |
| 403 FMT_W = 20, | 410 FMT_W = 20, |
| 404 FMT_L = 21, | 411 FMT_L = 21, |
| 405 FMT_PS = 22, | 412 FMT_PS = 22, |
| 406 }; | 413 }; |
| 407 | 414 |
| 415 |
| 408 class Instr { | 416 class Instr { |
| 409 public: | 417 public: |
| 410 enum { | 418 enum { |
| 411 kInstrSize = 4, | 419 kInstrSize = 4, |
| 412 }; | 420 }; |
| 413 | 421 |
| 414 static const int32_t kBreakPointInstruction = | 422 static const int32_t kBreakPointInstruction = |
| 415 (SPECIAL << kOpcodeShift) | (BREAK << kFunctionShift); | 423 (SPECIAL << kOpcodeShift) | (BREAK << kFunctionShift); |
| 416 static const int32_t kNopInstruction = 0; | 424 static const int32_t kNopInstruction = 0; |
| 417 static const int32_t kStopMessageCode = 1; | 425 static const int32_t kStopMessageCode = 1; |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 #endif // defined(DEBUG) | 565 #endif // defined(DEBUG) |
| 558 | 566 |
| 559 private: | 567 private: |
| 560 DISALLOW_ALLOCATION(); | 568 DISALLOW_ALLOCATION(); |
| 561 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); | 569 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); |
| 562 }; | 570 }; |
| 563 | 571 |
| 564 } // namespace dart | 572 } // namespace dart |
| 565 | 573 |
| 566 #endif // VM_CONSTANTS_MIPS_H_ | 574 #endif // VM_CONSTANTS_MIPS_H_ |
| OLD | NEW |