| 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 OpcodeToBitNumber(BNEL) | OpcodeToBitNumber(BLEZL) | | 920 OpcodeToBitNumber(BNEL) | OpcodeToBitNumber(BLEZL) | |
| 921 OpcodeToBitNumber(BGTZL) | OpcodeToBitNumber(POP66) | | 921 OpcodeToBitNumber(BGTZL) | OpcodeToBitNumber(POP66) | |
| 922 OpcodeToBitNumber(POP76) | OpcodeToBitNumber(LB) | OpcodeToBitNumber(LH) | | 922 OpcodeToBitNumber(POP76) | OpcodeToBitNumber(LB) | OpcodeToBitNumber(LH) | |
| 923 OpcodeToBitNumber(LWL) | OpcodeToBitNumber(LW) | OpcodeToBitNumber(LWU) | | 923 OpcodeToBitNumber(LWL) | OpcodeToBitNumber(LW) | OpcodeToBitNumber(LWU) | |
| 924 OpcodeToBitNumber(LD) | OpcodeToBitNumber(LBU) | OpcodeToBitNumber(LHU) | | 924 OpcodeToBitNumber(LD) | OpcodeToBitNumber(LBU) | OpcodeToBitNumber(LHU) | |
| 925 OpcodeToBitNumber(LWR) | OpcodeToBitNumber(SB) | OpcodeToBitNumber(SH) | | 925 OpcodeToBitNumber(LWR) | OpcodeToBitNumber(SB) | OpcodeToBitNumber(SH) | |
| 926 OpcodeToBitNumber(SWL) | OpcodeToBitNumber(SW) | OpcodeToBitNumber(SD) | | 926 OpcodeToBitNumber(SWL) | OpcodeToBitNumber(SW) | OpcodeToBitNumber(SD) | |
| 927 OpcodeToBitNumber(SWR) | OpcodeToBitNumber(LWC1) | | 927 OpcodeToBitNumber(SWR) | OpcodeToBitNumber(LWC1) | |
| 928 OpcodeToBitNumber(LDC1) | OpcodeToBitNumber(SWC1) | | 928 OpcodeToBitNumber(LDC1) | OpcodeToBitNumber(SWC1) | |
| 929 OpcodeToBitNumber(SDC1) | OpcodeToBitNumber(PCREL) | | 929 OpcodeToBitNumber(SDC1) | OpcodeToBitNumber(PCREL) | |
| 930 OpcodeToBitNumber(BC) | OpcodeToBitNumber(BALC); | 930 OpcodeToBitNumber(DAUI) | OpcodeToBitNumber(BC) | OpcodeToBitNumber(BALC); |
| 931 | 931 |
| 932 #define FunctionFieldToBitNumber(function) (1ULL << function) | 932 #define FunctionFieldToBitNumber(function) (1ULL << function) |
| 933 | 933 |
| 934 // On r6, DCLZ_R6 aliases to existing MFLO. | 934 // On r6, DCLZ_R6 aliases to existing MFLO. |
| 935 static const uint64_t kFunctionFieldRegisterTypeMask = | 935 static const uint64_t kFunctionFieldRegisterTypeMask = |
| 936 FunctionFieldToBitNumber(JR) | FunctionFieldToBitNumber(JALR) | | 936 FunctionFieldToBitNumber(JR) | FunctionFieldToBitNumber(JALR) | |
| 937 FunctionFieldToBitNumber(BREAK) | FunctionFieldToBitNumber(SLL) | | 937 FunctionFieldToBitNumber(BREAK) | FunctionFieldToBitNumber(SLL) | |
| 938 FunctionFieldToBitNumber(DSLL) | FunctionFieldToBitNumber(DSLL32) | | 938 FunctionFieldToBitNumber(DSLL) | FunctionFieldToBitNumber(DSLL32) | |
| 939 FunctionFieldToBitNumber(SRL) | FunctionFieldToBitNumber(DSRL) | | 939 FunctionFieldToBitNumber(SRL) | FunctionFieldToBitNumber(DSRL) | |
| 940 FunctionFieldToBitNumber(DSRL32) | FunctionFieldToBitNumber(SRA) | | 940 FunctionFieldToBitNumber(DSRL32) | FunctionFieldToBitNumber(SRA) | |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 } | 1255 } |
| 1256 return kUnsupported; | 1256 return kUnsupported; |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 #undef OpcodeToBitNumber | 1259 #undef OpcodeToBitNumber |
| 1260 #undef FunctionFieldToBitNumber | 1260 #undef FunctionFieldToBitNumber |
| 1261 } // namespace internal | 1261 } // namespace internal |
| 1262 } // namespace v8 | 1262 } // namespace v8 |
| 1263 | 1263 |
| 1264 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1264 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |