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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1199 case CLZ: | 1199 case CLZ: |
1200 case DCLZ: | 1200 case DCLZ: |
1201 return kRegisterType; | 1201 return kRegisterType; |
1202 default: | 1202 default: |
1203 return kUnsupported; | 1203 return kUnsupported; |
1204 } | 1204 } |
1205 break; | 1205 break; |
1206 case SPECIAL3: | 1206 case SPECIAL3: |
1207 switch (FunctionFieldRaw()) { | 1207 switch (FunctionFieldRaw()) { |
1208 case INS: | 1208 case INS: |
| 1209 case DINS: |
1209 case EXT: | 1210 case EXT: |
1210 case DEXT: | 1211 case DEXT: |
1211 case DEXTM: | 1212 case DEXTM: |
1212 case DEXTU: | 1213 case DEXTU: |
1213 return kRegisterType; | 1214 return kRegisterType; |
1214 case BSHFL: { | 1215 case BSHFL: { |
1215 int sa = SaFieldRaw() >> kSaShift; | 1216 int sa = SaFieldRaw() >> kSaShift; |
1216 switch (sa) { | 1217 switch (sa) { |
1217 case BITSWAP: | 1218 case BITSWAP: |
1218 return kRegisterType; | 1219 return kRegisterType; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1278 } | 1279 } |
1279 return kUnsupported; | 1280 return kUnsupported; |
1280 } | 1281 } |
1281 | 1282 |
1282 #undef OpcodeToBitNumber | 1283 #undef OpcodeToBitNumber |
1283 #undef FunctionFieldToBitNumber | 1284 #undef FunctionFieldToBitNumber |
1284 } // namespace internal | 1285 } // namespace internal |
1285 } // namespace v8 | 1286 } // namespace v8 |
1286 | 1287 |
1287 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1288 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |