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

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

Issue 11116011: Simulate and disasm NOP on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Go back to MOV for NOP instead of the actual NOP instruction: it doesn't actually have a perf benef… Created 8 years, 2 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/arm/constants-arm.h ('k') | src/arm/simulator-arm.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 // 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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 case CLZ: 823 case CLZ:
824 Format(instr, "clz'cond 'rd, 'rm"); 824 Format(instr, "clz'cond 'rd, 'rm");
825 break; 825 break;
826 default: 826 default:
827 Unknown(instr); // not used by V8 827 Unknown(instr); // not used by V8
828 break; 828 break;
829 } 829 }
830 } else { 830 } else {
831 Unknown(instr); // not used by V8 831 Unknown(instr); // not used by V8
832 } 832 }
833 } else if ((type == 1) && instr->IsNopType1()) {
834 Format(instr, "nop'cond");
833 } else { 835 } else {
834 switch (instr->OpcodeField()) { 836 switch (instr->OpcodeField()) {
835 case AND: { 837 case AND: {
836 Format(instr, "and'cond's 'rd, 'rn, 'shift_op"); 838 Format(instr, "and'cond's 'rd, 'rn, 'shift_op");
837 break; 839 break;
838 } 840 }
839 case EOR: { 841 case EOR: {
840 Format(instr, "eor'cond's 'rd, 'rn, 'shift_op"); 842 Format(instr, "eor'cond's 'rd, 'rn, 'shift_op");
841 break; 843 break;
842 } 844 }
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 pc += d.InstructionDecode(buffer, pc); 1528 pc += d.InstructionDecode(buffer, pc);
1527 fprintf(f, "%p %08x %s\n", 1529 fprintf(f, "%p %08x %s\n",
1528 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1530 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1529 } 1531 }
1530 } 1532 }
1531 1533
1532 1534
1533 } // namespace disasm 1535 } // namespace disasm
1534 1536
1535 #endif // V8_TARGET_ARCH_ARM 1537 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698