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

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

Issue 150100: More changes to make the simulator run code that for the ARM5 snapshot. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/macro-assembler-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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 Format(instr, "tst'cond 'rn, 'shift_op"); 586 Format(instr, "tst'cond 'rn, 'shift_op");
587 } else { 587 } else {
588 Unknown(instr); // not used by V8 588 Unknown(instr); // not used by V8
589 } 589 }
590 break; 590 break;
591 } 591 }
592 case TEQ: { 592 case TEQ: {
593 if (instr->HasS()) { 593 if (instr->HasS()) {
594 Format(instr, "teq'cond 'rn, 'shift_op"); 594 Format(instr, "teq'cond 'rn, 'shift_op");
595 } else { 595 } else {
596 Unknown(instr); // not used by V8 596 switch (instr->Bits(7, 4)) {
597 case BX:
598 Format(instr, "bx'cond 'rm");
599 break;
600 case BLX:
601 Format(instr, "blx'cond 'rm");
602 break;
603 default:
604 Unknown(instr); // not used by V8
605 break;
606 }
597 } 607 }
598 break; 608 break;
599 } 609 }
600 case CMP: { 610 case CMP: {
601 if (instr->HasS()) { 611 if (instr->HasS()) {
602 Format(instr, "cmp'cond 'rn, 'shift_op"); 612 Format(instr, "cmp'cond 'rn, 'shift_op");
603 } else { 613 } else {
604 Unknown(instr); // not used by V8 614 Unknown(instr); // not used by V8
605 } 615 }
606 break; 616 break;
607 } 617 }
608 case CMN: { 618 case CMN: {
609 if (instr->HasS()) { 619 if (instr->HasS()) {
610 Format(instr, "cmn'cond 'rn, 'shift_op"); 620 Format(instr, "cmn'cond 'rn, 'shift_op");
611 } else { 621 } else {
612 Unknown(instr); // not used by V8 622 switch (instr->Bits(7, 4)) {
623 case CLZ:
624 Format(instr, "clz'cond 'rd, 'rm");
625 break;
626 default:
627 Unknown(instr); // not used by V8
628 break;
629 }
613 } 630 }
614 break; 631 break;
615 } 632 }
616 case ORR: { 633 case ORR: {
617 Format(instr, "orr'cond's 'rd, 'rn, 'shift_op"); 634 Format(instr, "orr'cond's 'rd, 'rn, 'shift_op");
618 break; 635 break;
619 } 636 }
620 case MOV: { 637 case MOV: {
621 Format(instr, "mov'cond's 'rd, 'shift_op"); 638 Format(instr, "mov'cond's 'rd, 'shift_op");
622 break; 639 break;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 buffer[0] = '\0'; 897 buffer[0] = '\0';
881 byte* prev_pc = pc; 898 byte* prev_pc = pc;
882 pc += d.InstructionDecode(buffer, pc); 899 pc += d.InstructionDecode(buffer, pc);
883 fprintf(f, "%p %08x %s\n", 900 fprintf(f, "%p %08x %s\n",
884 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 901 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
885 } 902 }
886 } 903 }
887 904
888 905
889 } // namespace disasm 906 } // namespace disasm
OLDNEW
« no previous file with comments | « src/arm/constants-arm.h ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698