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

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

Issue 11666007: Fixed x64 disassembler for cmpb_al (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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 | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 case 0xEB: 1717 case 0xEB:
1718 data += JumpShort(data); 1718 data += JumpShort(data);
1719 break; 1719 break;
1720 1720
1721 case 0xF6: 1721 case 0xF6:
1722 byte_size_operand_ = true; // fall through 1722 byte_size_operand_ = true; // fall through
1723 case 0xF7: 1723 case 0xF7:
1724 data += F6F7Instruction(data); 1724 data += F6F7Instruction(data);
1725 break; 1725 break;
1726 1726
1727 case 0x3C:
1728 AppendToBuffer("cmp al, 0x%x", *reinterpret_cast<int8_t*>(data + 1));
1729 data +=2;
1730 break;
1731
1727 default: 1732 default:
1728 UnimplementedInstruction(); 1733 UnimplementedInstruction();
1729 data += 1; 1734 data += 1;
1730 } 1735 }
1731 } // !processed 1736 } // !processed
1732 1737
1733 if (tmp_buffer_pos_ < sizeof tmp_buffer_) { 1738 if (tmp_buffer_pos_ < sizeof tmp_buffer_) {
1734 tmp_buffer_[tmp_buffer_pos_] = '\0'; 1739 tmp_buffer_[tmp_buffer_pos_] = '\0';
1735 } 1740 }
1736 1741
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 1853 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
1849 fprintf(f, " "); 1854 fprintf(f, " ");
1850 } 1855 }
1851 fprintf(f, " %s\n", buffer.start()); 1856 fprintf(f, " %s\n", buffer.start());
1852 } 1857 }
1853 } 1858 }
1854 1859
1855 } // namespace disasm 1860 } // namespace disasm
1856 1861
1857 #endif // V8_TARGET_ARCH_X64 1862 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698