OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_CONSTANTS_H_ | 5 #ifndef V8_MIPS_CONSTANTS_H_ |
6 #define V8_MIPS_CONSTANTS_H_ | 6 #define V8_MIPS_CONSTANTS_H_ |
7 #include "src/globals.h" | 7 #include "src/globals.h" |
8 // UNIMPLEMENTED_ macro for MIPS. | 8 // UNIMPLEMENTED_ macro for MIPS. |
9 #ifdef DEBUG | 9 #ifdef DEBUG |
10 #define UNIMPLEMENTED_MIPS() \ | 10 #define UNIMPLEMENTED_MIPS() \ |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 const int kImm16Mask = ((1 << kImm16Bits) - 1) << kImm16Shift; | 363 const int kImm16Mask = ((1 << kImm16Bits) - 1) << kImm16Shift; |
364 const int kImm18Mask = ((1 << kImm18Bits) - 1) << kImm18Shift; | 364 const int kImm18Mask = ((1 << kImm18Bits) - 1) << kImm18Shift; |
365 const int kImm19Mask = ((1 << kImm19Bits) - 1) << kImm19Shift; | 365 const int kImm19Mask = ((1 << kImm19Bits) - 1) << kImm19Shift; |
366 const int kImm21Mask = ((1 << kImm21Bits) - 1) << kImm21Shift; | 366 const int kImm21Mask = ((1 << kImm21Bits) - 1) << kImm21Shift; |
367 const int kImm26Mask = ((1 << kImm26Bits) - 1) << kImm26Shift; | 367 const int kImm26Mask = ((1 << kImm26Bits) - 1) << kImm26Shift; |
368 const int kImm28Mask = ((1 << kImm28Bits) - 1) << kImm28Shift; | 368 const int kImm28Mask = ((1 << kImm28Bits) - 1) << kImm28Shift; |
369 const int kImm5Mask = ((1 << 5) - 1); | 369 const int kImm5Mask = ((1 << 5) - 1); |
370 const int kImm8Mask = ((1 << 8) - 1); | 370 const int kImm8Mask = ((1 << 8) - 1); |
371 const int kImm10Mask = ((1 << 10) - 1); | 371 const int kImm10Mask = ((1 << 10) - 1); |
372 const int kMsaI5I10Mask = ((7U << 23) | ((1 << 6) - 1)); | 372 const int kMsaI5I10Mask = ((7U << 23) | ((1 << 6) - 1)); |
| 373 const int kMsaI8Mask = ((3U << 24) | ((1 << 6) - 1)); |
| 374 const int kMsaI5Mask = ((7U << 23) | ((1 << 6) - 1)); |
| 375 const int kMsaMI10Mask = (15U << 2); |
| 376 const int kMsaBITMask = ((7U << 23) | ((1 << 6) - 1)); |
| 377 const int kMsaELMMask = (15U << 22); |
| 378 const int kMsa3RMask = ((7U << 23) | ((1 << 6) - 1)); |
| 379 const int kMsa3RFMask = ((15U << 22) | ((1 << 6) - 1)); |
| 380 const int kMsaVECMask = (23U << 21); |
| 381 const int kMsa2RMask = (7U << 18); |
| 382 const int kMsa2RFMask = (15U << 17); |
373 const int kRsFieldMask = ((1 << kRsBits) - 1) << kRsShift; | 383 const int kRsFieldMask = ((1 << kRsBits) - 1) << kRsShift; |
374 const int kRtFieldMask = ((1 << kRtBits) - 1) << kRtShift; | 384 const int kRtFieldMask = ((1 << kRtBits) - 1) << kRtShift; |
375 const int kRdFieldMask = ((1 << kRdBits) - 1) << kRdShift; | 385 const int kRdFieldMask = ((1 << kRdBits) - 1) << kRdShift; |
376 const int kSaFieldMask = ((1 << kSaBits) - 1) << kSaShift; | 386 const int kSaFieldMask = ((1 << kSaBits) - 1) << kSaShift; |
377 const int kFunctionFieldMask = ((1 << kFunctionBits) - 1) << kFunctionShift; | 387 const int kFunctionFieldMask = ((1 << kFunctionBits) - 1) << kFunctionShift; |
378 // Misc masks. | 388 // Misc masks. |
379 const int kHiMask = 0xffff << 16; | 389 const int kHiMask = 0xffff << 16; |
380 const int kLoMask = 0xffff; | 390 const int kLoMask = 0xffff; |
381 const int kSignMask = 0x80000000; | 391 const int kSignMask = 0x80000000; |
382 const int kJumpAddrMask = (1 << (kImm26Bits + kImmFieldShift)) - 1; | 392 const int kJumpAddrMask = (1 << (kImm26Bits + kImmFieldShift)) - 1; |
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1832 } | 1842 } |
1833 break; | 1843 break; |
1834 default: | 1844 default: |
1835 return false; | 1845 return false; |
1836 } | 1846 } |
1837 } | 1847 } |
1838 } // namespace internal | 1848 } // namespace internal |
1839 } // namespace v8 | 1849 } // namespace v8 |
1840 | 1850 |
1841 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1851 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |