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

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

Issue 131733002: Skip back edge creation for "do ... while(false)" loops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: undo cleanup Created 6 years, 11 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 | « src/hydrogen.cc ('k') | 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 1000
1001 case 0x81: // fall through 1001 case 0x81: // fall through
1002 case 0x83: // 0x81 with sign extension bit set 1002 case 0x83: // 0x81 with sign extension bit set
1003 data += PrintImmediateOp(data); 1003 data += PrintImmediateOp(data);
1004 break; 1004 break;
1005 1005
1006 case 0x0F: 1006 case 0x0F:
1007 { byte f0byte = data[1]; 1007 { byte f0byte = data[1];
1008 const char* f0mnem = F0Mnem(f0byte); 1008 const char* f0mnem = F0Mnem(f0byte);
1009 if (f0byte == 0x18) { 1009 if (f0byte == 0x18) {
1010 data += 2;
1010 int mod, regop, rm; 1011 int mod, regop, rm;
1011 get_modrm(*data, &mod, &regop, &rm); 1012 get_modrm(*data, &mod, &regop, &rm);
1012 const char* suffix[] = {"nta", "1", "2", "3"}; 1013 const char* suffix[] = {"nta", "1", "2", "3"};
1013 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]); 1014 AppendToBuffer("%s%s ", f0mnem, suffix[regop & 0x03]);
1014 data += PrintRightOperand(data); 1015 data += PrintRightOperand(data);
1015 } else if (f0byte == 0x1F && data[2] == 0) { 1016 } else if (f0byte == 0x1F && data[2] == 0) {
1016 AppendToBuffer("nop"); // 3 byte nop. 1017 AppendToBuffer("nop"); // 3 byte nop.
1017 data += 3; 1018 data += 3;
1018 } else if (f0byte == 0x1F && data[2] == 0x40 && data[3] == 0) { 1019 } else if (f0byte == 0x1F && data[2] == 0x40 && data[3] == 0) {
1019 AppendToBuffer("nop"); // 4 byte nop. 1020 AppendToBuffer("nop"); // 4 byte nop.
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 fprintf(f, " "); 1763 fprintf(f, " ");
1763 } 1764 }
1764 fprintf(f, " %s\n", buffer.start()); 1765 fprintf(f, " %s\n", buffer.start());
1765 } 1766 }
1766 } 1767 }
1767 1768
1768 1769
1769 } // namespace disasm 1770 } // namespace disasm
1770 1771
1771 #endif // V8_TARGET_ARCH_IA32 1772 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698