Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: src/mips/constants-mips.h

Issue 2069933003: Implement byte swapping instructions on MIPS32 and MIPS64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698