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/disasm-arm.cc

Issue 18313: Fix disassembling of set instructions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 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/disasm.h ('k') | src/disasm-ia32.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 const char* result; 822 const char* result;
823 if ((0 <= reg) && (reg < kMaxRegisters)) { 823 if ((0 <= reg) && (reg < kMaxRegisters)) {
824 result = reg_names[reg]; 824 result = reg_names[reg];
825 } else { 825 } else {
826 result = "noreg"; 826 result = "noreg";
827 } 827 }
828 return result; 828 return result;
829 } 829 }
830 830
831 831
832 const char* NameConverter::NameOfByteCPURegister(int reg) const {
833 UNREACHABLE(); // ARM does not have the concept of a byte register
834 return "nobytereg";
835 }
836
837
832 const char* NameConverter::NameOfXMMRegister(int reg) const { 838 const char* NameConverter::NameOfXMMRegister(int reg) const {
833 UNREACHABLE(); // ARM does not have any XMM registers 839 UNREACHABLE(); // ARM does not have any XMM registers
834 return "noxmmreg"; 840 return "noxmmreg";
835 } 841 }
836 842
837 843
838 const char* NameConverter::NameInCode(byte* addr) const { 844 const char* NameConverter::NameInCode(byte* addr) const {
839 // The default name converter is called for unknown code. So we will not try 845 // The default name converter is called for unknown code. So we will not try
840 // to access any memory. 846 // to access any memory.
841 return ""; 847 return "";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 buffer[0] = '\0'; 882 buffer[0] = '\0';
877 byte* prev_pc = pc; 883 byte* prev_pc = pc;
878 pc += d.InstructionDecode(buffer, pc); 884 pc += d.InstructionDecode(buffer, pc);
879 fprintf(f, "%p %08x %s\n", 885 fprintf(f, "%p %08x %s\n",
880 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 886 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
881 } 887 }
882 } 888 }
883 889
884 890
885 } // namespace disasm 891 } // namespace disasm
OLDNEW
« no previous file with comments | « src/disasm.h ('k') | src/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698