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 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 case DINS: | 1230 case DINS: |
1231 case EXT: | 1231 case EXT: |
1232 case DEXT: | 1232 case DEXT: |
1233 case DEXTM: | 1233 case DEXTM: |
1234 case DEXTU: | 1234 case DEXTU: |
1235 return kRegisterType; | 1235 return kRegisterType; |
1236 case BSHFL: { | 1236 case BSHFL: { |
1237 int sa = SaFieldRaw() >> kSaShift; | 1237 int sa = SaFieldRaw() >> kSaShift; |
1238 switch (sa) { | 1238 switch (sa) { |
1239 case BITSWAP: | 1239 case BITSWAP: |
1240 return kRegisterType; | |
1241 case WSBH: | 1240 case WSBH: |
1242 case SEB: | 1241 case SEB: |
1243 case SEH: | 1242 case SEH: |
1244 return kUnsupported; | 1243 return kRegisterType; |
1245 } | 1244 } |
1246 sa >>= kBp2Bits; | 1245 sa >>= kBp2Bits; |
1247 switch (sa) { | 1246 switch (sa) { |
1248 case ALIGN: | 1247 case ALIGN: |
1249 return kRegisterType; | 1248 return kRegisterType; |
1250 default: | 1249 default: |
1251 return kUnsupported; | 1250 return kUnsupported; |
1252 } | 1251 } |
1253 } | 1252 } |
1254 case DBSHFL: { | 1253 case DBSHFL: { |
1255 int sa = SaFieldRaw() >> kSaShift; | 1254 int sa = SaFieldRaw() >> kSaShift; |
1256 switch (sa) { | 1255 switch (sa) { |
1257 case DBITSWAP: | 1256 case DBITSWAP: |
1258 return kRegisterType; | |
1259 case DSBH: | 1257 case DSBH: |
1260 case DSHD: | 1258 case DSHD: |
1261 return kUnsupported; | 1259 return kRegisterType; |
1262 } | 1260 } |
1263 sa = SaFieldRaw() >> kSaShift; | 1261 sa = SaFieldRaw() >> kSaShift; |
1264 sa >>= kBp3Bits; | 1262 sa >>= kBp3Bits; |
1265 switch (sa) { | 1263 switch (sa) { |
1266 case DALIGN: | 1264 case DALIGN: |
1267 return kRegisterType; | 1265 return kRegisterType; |
1268 default: | 1266 default: |
1269 return kUnsupported; | 1267 return kUnsupported; |
1270 } | 1268 } |
1271 } | 1269 } |
(...skipping 28 matching lines...) Expand all Loading... |
1300 } | 1298 } |
1301 return kUnsupported; | 1299 return kUnsupported; |
1302 } | 1300 } |
1303 | 1301 |
1304 #undef OpcodeToBitNumber | 1302 #undef OpcodeToBitNumber |
1305 #undef FunctionFieldToBitNumber | 1303 #undef FunctionFieldToBitNumber |
1306 } // namespace internal | 1304 } // namespace internal |
1307 } // namespace v8 | 1305 } // namespace v8 |
1308 | 1306 |
1309 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1307 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
OLD | NEW |