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 | 7 |
8 #include "src/base/logging.h" | 8 #include "src/base/logging.h" |
9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 const int kImm16Mask = ((1 << kImm16Bits) - 1) << kImm16Shift; | 326 const int kImm16Mask = ((1 << kImm16Bits) - 1) << kImm16Shift; |
327 const int kImm18Mask = ((1 << kImm18Bits) - 1) << kImm18Shift; | 327 const int kImm18Mask = ((1 << kImm18Bits) - 1) << kImm18Shift; |
328 const int kImm19Mask = ((1 << kImm19Bits) - 1) << kImm19Shift; | 328 const int kImm19Mask = ((1 << kImm19Bits) - 1) << kImm19Shift; |
329 const int kImm21Mask = ((1 << kImm21Bits) - 1) << kImm21Shift; | 329 const int kImm21Mask = ((1 << kImm21Bits) - 1) << kImm21Shift; |
330 const int kImm26Mask = ((1 << kImm26Bits) - 1) << kImm26Shift; | 330 const int kImm26Mask = ((1 << kImm26Bits) - 1) << kImm26Shift; |
331 const int kImm28Mask = ((1 << kImm28Bits) - 1) << kImm28Shift; | 331 const int kImm28Mask = ((1 << kImm28Bits) - 1) << kImm28Shift; |
332 const int kImm5Mask = ((1 << 5) - 1); | 332 const int kImm5Mask = ((1 << 5) - 1); |
333 const int kImm8Mask = ((1 << 8) - 1); | 333 const int kImm8Mask = ((1 << 8) - 1); |
334 const int kImm10Mask = ((1 << 10) - 1); | 334 const int kImm10Mask = ((1 << 10) - 1); |
335 const int kMsaI5I10Mask = ((7U << 23) | ((1 << 6) - 1)); | 335 const int kMsaI5I10Mask = ((7U << 23) | ((1 << 6) - 1)); |
| 336 const int kMsaI8Mask = ((3U << 24) | ((1 << 6) - 1)); |
| 337 const int kMsaI5Mask = ((7U << 23) | ((1 << 6) - 1)); |
| 338 const int kMsaMI10Mask = (15U << 2); |
| 339 const int kMsaBITMask = ((7U << 23) | ((1 << 6) - 1)); |
| 340 const int kMsaELMMask = (15U << 22); |
| 341 const int kMsa3RMask = ((7U << 23) | ((1 << 6) - 1)); |
| 342 const int kMsa3RFMask = ((15U << 22) | ((1 << 6) - 1)); |
| 343 const int kMsaVECMask = (23U << 21); |
| 344 const int kMsa2RMask = (7U << 18); |
| 345 const int kMsa2RFMask = (15U << 17); |
336 const int kRsFieldMask = ((1 << kRsBits) - 1) << kRsShift; | 346 const int kRsFieldMask = ((1 << kRsBits) - 1) << kRsShift; |
337 const int kRtFieldMask = ((1 << kRtBits) - 1) << kRtShift; | 347 const int kRtFieldMask = ((1 << kRtBits) - 1) << kRtShift; |
338 const int kRdFieldMask = ((1 << kRdBits) - 1) << kRdShift; | 348 const int kRdFieldMask = ((1 << kRdBits) - 1) << kRdShift; |
339 const int kSaFieldMask = ((1 << kSaBits) - 1) << kSaShift; | 349 const int kSaFieldMask = ((1 << kSaBits) - 1) << kSaShift; |
340 const int kFunctionFieldMask = ((1 << kFunctionBits) - 1) << kFunctionShift; | 350 const int kFunctionFieldMask = ((1 << kFunctionBits) - 1) << kFunctionShift; |
341 // Misc masks. | 351 // Misc masks. |
342 const int kHiMaskOf32 = 0xffff << 16; // Only to be used with 32-bit values | 352 const int kHiMaskOf32 = 0xffff << 16; // Only to be used with 32-bit values |
343 const int kLoMaskOf32 = 0xffff; | 353 const int kLoMaskOf32 = 0xffff; |
344 const int kSignMaskOf32 = 0x80000000; // Only to be used with 32-bit values | 354 const int kSignMaskOf32 = 0x80000000; // Only to be used with 32-bit values |
345 const int kJumpAddrMask = (1 << (kImm26Bits + kImmFieldShift)) - 1; | 355 const int kJumpAddrMask = (1 << (kImm26Bits + kImmFieldShift)) - 1; |
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1910 } | 1920 } |
1911 break; | 1921 break; |
1912 default: | 1922 default: |
1913 return false; | 1923 return false; |
1914 } | 1924 } |
1915 } | 1925 } |
1916 } // namespace internal | 1926 } // namespace internal |
1917 } // namespace v8 | 1927 } // namespace v8 |
1918 | 1928 |
1919 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1929 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |