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

Side by Side Diff: src/disasm.h

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 | « no previous file | src/disasm-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-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 21 matching lines...) Expand all
32 32
33 typedef unsigned char byte; 33 typedef unsigned char byte;
34 34
35 // Interface and default implementation for converting addresses and 35 // Interface and default implementation for converting addresses and
36 // register-numbers to text. The default implementation is machine 36 // register-numbers to text. The default implementation is machine
37 // specific. 37 // specific.
38 class NameConverter { 38 class NameConverter {
39 public: 39 public:
40 virtual ~NameConverter() {} 40 virtual ~NameConverter() {}
41 virtual const char* NameOfCPURegister(int reg) const; 41 virtual const char* NameOfCPURegister(int reg) const;
42 virtual const char* NameOfByteCPURegister(int reg) const;
42 virtual const char* NameOfXMMRegister(int reg) const; 43 virtual const char* NameOfXMMRegister(int reg) const;
43 virtual const char* NameOfAddress(byte* addr) const; 44 virtual const char* NameOfAddress(byte* addr) const;
44 virtual const char* NameOfConstant(byte* addr) const; 45 virtual const char* NameOfConstant(byte* addr) const;
45 virtual const char* NameInCode(byte* addr) const; 46 virtual const char* NameInCode(byte* addr) const;
46 }; 47 };
47 48
48 49
49 // A generic Disassembler interface 50 // A generic Disassembler interface
50 class Disassembler { 51 class Disassembler {
51 public: 52 public:
(...skipping 15 matching lines...) Expand all
67 static void Disassemble(FILE* f, byte* begin, byte* end); 68 static void Disassemble(FILE* f, byte* begin, byte* end);
68 private: 69 private:
69 const NameConverter& converter_; 70 const NameConverter& converter_;
70 71
71 DISALLOW_IMPLICIT_CONSTRUCTORS(Disassembler); 72 DISALLOW_IMPLICIT_CONSTRUCTORS(Disassembler);
72 }; 73 };
73 74
74 } // namespace disasm 75 } // namespace disasm
75 76
76 #endif // V8_DISASM_H_ 77 #endif // V8_DISASM_H_
OLDNEW
« no previous file with comments | « no previous file | src/disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698