| 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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 break; | 1179 break; |
| 1180 case SPECIAL3: | 1180 case SPECIAL3: |
| 1181 switch (FunctionFieldRaw()) { | 1181 switch (FunctionFieldRaw()) { |
| 1182 case INS: | 1182 case INS: |
| 1183 case EXT: | 1183 case EXT: |
| 1184 return kRegisterType; | 1184 return kRegisterType; |
| 1185 case BSHFL: { | 1185 case BSHFL: { |
| 1186 int sa = SaFieldRaw() >> kSaShift; | 1186 int sa = SaFieldRaw() >> kSaShift; |
| 1187 switch (sa) { | 1187 switch (sa) { |
| 1188 case BITSWAP: | 1188 case BITSWAP: |
| 1189 return kRegisterType; | |
| 1190 case WSBH: | 1189 case WSBH: |
| 1191 case SEB: | 1190 case SEB: |
| 1192 case SEH: | 1191 case SEH: |
| 1193 return kUnsupported; | 1192 return kRegisterType; |
| 1194 } | 1193 } |
| 1195 sa >>= kBp2Bits; | 1194 sa >>= kBp2Bits; |
| 1196 switch (sa) { | 1195 switch (sa) { |
| 1197 case ALIGN: | 1196 case ALIGN: |
| 1198 return kRegisterType; | 1197 return kRegisterType; |
| 1199 default: | 1198 default: |
| 1200 return kUnsupported; | 1199 return kUnsupported; |
| 1201 } | 1200 } |
| 1202 } | 1201 } |
| 1203 default: | 1202 default: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1230 } | 1229 } |
| 1231 } | 1230 } |
| 1232 } | 1231 } |
| 1233 | 1232 |
| 1234 #undef OpcodeToBitNumber | 1233 #undef OpcodeToBitNumber |
| 1235 #undef FunctionFieldToBitNumber | 1234 #undef FunctionFieldToBitNumber |
| 1236 } // namespace internal | 1235 } // namespace internal |
| 1237 } // namespace v8 | 1236 } // namespace v8 |
| 1238 | 1237 |
| 1239 #endif // #ifndef V8_MIPS_CONSTANTS_H_ | 1238 #endif // #ifndef V8_MIPS_CONSTANTS_H_ |
| OLD | NEW |