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

Side by Side Diff: src/disasm.h

Issue 6685088: Merge isolates to bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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/debug-debugger.js ('k') | src/disassembler.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 26 matching lines...) Expand all
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* NameOfByteCPURegister(int reg) const;
43 virtual const char* NameOfXMMRegister(int reg) const; 43 virtual const char* NameOfXMMRegister(int reg) const;
44 virtual const char* NameOfAddress(byte* addr) const; 44 virtual const char* NameOfAddress(byte* addr) const;
45 virtual const char* NameOfConstant(byte* addr) const; 45 virtual const char* NameOfConstant(byte* addr) const;
46 virtual const char* NameInCode(byte* addr) const; 46 virtual const char* NameInCode(byte* addr) const;
47
48 protected:
49 v8::internal::EmbeddedVector<char, 128> tmp_buffer_;
47 }; 50 };
48 51
49 52
50 // A generic Disassembler interface 53 // A generic Disassembler interface
51 class Disassembler { 54 class Disassembler {
52 public: 55 public:
53 // Caller deallocates converter. 56 // Caller deallocates converter.
54 explicit Disassembler(const NameConverter& converter); 57 explicit Disassembler(const NameConverter& converter);
55 58
56 virtual ~Disassembler(); 59 virtual ~Disassembler();
(...skipping 11 matching lines...) Expand all
68 static void Disassemble(FILE* f, byte* begin, byte* end); 71 static void Disassemble(FILE* f, byte* begin, byte* end);
69 private: 72 private:
70 const NameConverter& converter_; 73 const NameConverter& converter_;
71 74
72 DISALLOW_IMPLICIT_CONSTRUCTORS(Disassembler); 75 DISALLOW_IMPLICIT_CONSTRUCTORS(Disassembler);
73 }; 76 };
74 77
75 } // namespace disasm 78 } // namespace disasm
76 79
77 #endif // V8_DISASM_H_ 80 #endif // V8_DISASM_H_
OLDNEW
« no previous file with comments | « src/debug-debugger.js ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698