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

Side by Side Diff: runtime/vm/disassembler_mips.cc

Issue 13474009: Implements optional parameter handling in MIPS vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
8 #if defined(TARGET_ARCH_MIPS) 8 #if defined(TARGET_ARCH_MIPS)
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 10
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 break; 325 break;
326 } 326 }
327 case SRLV: { 327 case SRLV: {
328 if (instr->SaField() == 0) { 328 if (instr->SaField() == 0) {
329 Format(instr, "srlv 'rd, 'rt, 'rs"); 329 Format(instr, "srlv 'rd, 'rt, 'rs");
330 } else { 330 } else {
331 Unknown(instr); 331 Unknown(instr);
332 } 332 }
333 break; 333 break;
334 } 334 }
335 case SUB: {
336 Format(instr, "sub 'rd, 'rs, 'rt");
337 break;
338 }
339 case SUBU: { 335 case SUBU: {
340 Format(instr, "subu 'rd, 'rs, 'rt"); 336 Format(instr, "subu 'rd, 'rs, 'rt");
341 break; 337 break;
342 } 338 }
343 case XOR: { 339 case XOR: {
344 Format(instr, "xor 'rd, 'rs, 'rt"); 340 Format(instr, "xor 'rd, 'rs, 'rt");
345 break; 341 break;
346 } 342 }
347 default: { 343 default: {
348 Unknown(instr); 344 Unknown(instr);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 pc); 539 pc);
544 pc += instruction_length; 540 pc += instruction_length;
545 } 541 }
546 542
547 return; 543 return;
548 } 544 }
549 545
550 } // namespace dart 546 } // namespace dart
551 547
552 #endif // defined TARGET_ARCH_MIPS 548 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698