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

Side by Side Diff: src/ia32/disasm-ia32.cc

Issue 442003002: Fix disassembly of sar(_, imm8) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | src/x87/disasm-x87.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 <assert.h> 5 #include <assert.h>
6 #include <stdarg.h> 6 #include <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 mnem = "sar"; 599 mnem = "sar";
600 break; 600 break;
601 default: 601 default:
602 UnimplementedInstruction(); 602 UnimplementedInstruction();
603 } 603 }
604 AppendToBuffer("%s ", mnem); 604 AppendToBuffer("%s ", mnem);
605 int count = PrintRightOperand(data); 605 int count = PrintRightOperand(data);
606 if (op == 0xD1) { 606 if (op == 0xD1) {
607 imm8 = 1; 607 imm8 = 1;
608 } else if (op == 0xC1) { 608 } else if (op == 0xC1) {
609 imm8 = *(data + 2); 609 imm8 = *(data + 1);
610 count++; 610 count++;
611 } else if (op == 0xD3) { 611 } else if (op == 0xD3) {
612 // Shift/rotate by cl. 612 // Shift/rotate by cl.
613 } 613 }
614 if (imm8 >= 0) { 614 if (imm8 >= 0) {
615 AppendToBuffer(",%d", imm8); 615 AppendToBuffer(",%d", imm8);
616 } else { 616 } else {
617 AppendToBuffer(",cl"); 617 AppendToBuffer(",cl");
618 } 618 }
619 return 1 + count; 619 return 1 + count;
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 fprintf(f, " "); 1770 fprintf(f, " ");
1771 } 1771 }
1772 fprintf(f, " %s\n", buffer.start()); 1772 fprintf(f, " %s\n", buffer.start());
1773 } 1773 }
1774 } 1774 }
1775 1775
1776 1776
1777 } // namespace disasm 1777 } // namespace disasm
1778 1778
1779 #endif // V8_TARGET_ARCH_IA32 1779 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/x87/disasm-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698