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

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

Issue 1057323002: MIPS: Major fixes and clean-up in asm. for instruction encoding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Typos addressed. Created 5 years, 8 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/mips/constants-mips.h" 9 #include "src/mips/constants-mips.h"
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return kRegisterType; 275 return kRegisterType;
276 default: 276 default:
277 return kUnsupported; 277 return kUnsupported;
278 } 278 }
279 break; 279 break;
280 case COP1: // Coprocessor instructions. 280 case COP1: // Coprocessor instructions.
281 switch (RsFieldRawNoAssert()) { 281 switch (RsFieldRawNoAssert()) {
282 case BC1: // Branch on coprocessor condition. 282 case BC1: // Branch on coprocessor condition.
283 case BC1EQZ: 283 case BC1EQZ:
284 case BC1NEZ: 284 case BC1NEZ:
285 case SELEQZ_C:
286 case SELNEZ_C:
287 return kImmediateType; 285 return kImmediateType;
288 default: 286 default:
289 return kRegisterType; 287 return kRegisterType;
290 } 288 }
291 break; 289 break;
292 case COP1X: 290 case COP1X:
293 return kRegisterType; 291 return kRegisterType;
294 // 16 bits Immediate type instructions. e.g.: addi dest, src, imm16. 292 // 16 bits Immediate type instructions. e.g.: addi dest, src, imm16.
295 case REGIMM: 293 case REGIMM:
296 case BEQ: 294 case BEQ:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 default: 334 default:
337 return kUnsupported; 335 return kUnsupported;
338 } 336 }
339 return kUnsupported; 337 return kUnsupported;
340 } 338 }
341 339
342 340
343 } } // namespace v8::internal 341 } } // namespace v8::internal
344 342
345 #endif // V8_TARGET_ARCH_MIPS 343 #endif // V8_TARGET_ARCH_MIPS
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