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

Side by Side Diff: courgette/disassembler_win32_x86.h

Issue 8417045: Last small bit of refactoring. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 | « courgette/disassembler.cc ('k') | courgette/ensemble.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COURGETTE_DISASSEMBLER_WIN32_X86_H_ 5 #ifndef COURGETTE_DISASSEMBLER_WIN32_X86_H_
6 #define COURGETTE_DISASSEMBLER_WIN32_X86_H_ 6 #define COURGETTE_DISASSEMBLER_WIN32_X86_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "courgette/disassembler.h" 9 #include "courgette/disassembler.h"
10 #include "courgette/memory_allocator.h" 10 #include "courgette/memory_allocator.h"
11 #include "courgette/types_win_pe.h" 11 #include "courgette/types_win_pe.h"
12 12
13 namespace courgette { 13 namespace courgette {
14 14
15 class AssemblyProgram; 15 class AssemblyProgram;
16 16
17 class DisassemblerWin32X86 : public Disassembler { 17 class DisassemblerWin32X86 : public Disassembler {
18 public: 18 public:
19 explicit DisassemblerWin32X86(const void* start, size_t length); 19 explicit DisassemblerWin32X86(const void* start, size_t length);
20 20
21 virtual ExecutableType kind() { return WIN32_X86; } 21 virtual ExecutableType kind() { return EXE_WIN_32_X86; }
22 22
23 // Returns 'true' if the buffer appears to point to a Windows 32 bit 23 // Returns 'true' if the buffer appears to point to a Windows 32 bit
24 // executable, 'false' otherwise. If ParseHeader() succeeds, other member 24 // executable, 'false' otherwise. If ParseHeader() succeeds, other member
25 // functions may be called. 25 // functions may be called.
26 virtual bool ParseHeader(); 26 virtual bool ParseHeader();
27 27
28 virtual bool Disassemble(AssemblyProgram* target); 28 virtual bool Disassemble(AssemblyProgram* target);
29 29
30 // 30 //
31 // Exposed for test purposes 31 // Exposed for test purposes
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 std::map<RVA, int> abs32_target_rvas_; 147 std::map<RVA, int> abs32_target_rvas_;
148 std::map<RVA, int> rel32_target_rvas_; 148 std::map<RVA, int> rel32_target_rvas_;
149 #endif 149 #endif
150 150
151 151
152 DISALLOW_COPY_AND_ASSIGN(DisassemblerWin32X86); 152 DISALLOW_COPY_AND_ASSIGN(DisassemblerWin32X86);
153 }; 153 };
154 154
155 } // namespace courgette 155 } // namespace courgette
156 #endif // COURGETTE_DISASSEMBLER_WIN32_X86_H_ 156 #endif // COURGETTE_DISASSEMBLER_WIN32_X86_H_
OLDNEW
« no previous file with comments | « courgette/disassembler.cc ('k') | courgette/ensemble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698