OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 the V8 project 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 V8_DISASM_H_ | 5 #ifndef V8_DISASM_H_ |
6 #define V8_DISASM_H_ | 6 #define V8_DISASM_H_ |
7 | 7 |
| 8 #include "src/utils.h" |
| 9 |
8 namespace disasm { | 10 namespace disasm { |
9 | 11 |
10 typedef unsigned char byte; | 12 typedef unsigned char byte; |
11 | 13 |
12 // Interface and default implementation for converting addresses and | 14 // Interface and default implementation for converting addresses and |
13 // register-numbers to text. The default implementation is machine | 15 // register-numbers to text. The default implementation is machine |
14 // specific. | 16 // specific. |
15 class NameConverter { | 17 class NameConverter { |
16 public: | 18 public: |
17 virtual ~NameConverter() {} | 19 virtual ~NameConverter() {} |
(...skipping 30 matching lines...) Expand all Loading... |
48 static void Disassemble(FILE* f, byte* begin, byte* end); | 50 static void Disassemble(FILE* f, byte* begin, byte* end); |
49 private: | 51 private: |
50 const NameConverter& converter_; | 52 const NameConverter& converter_; |
51 | 53 |
52 DISALLOW_IMPLICIT_CONSTRUCTORS(Disassembler); | 54 DISALLOW_IMPLICIT_CONSTRUCTORS(Disassembler); |
53 }; | 55 }; |
54 | 56 |
55 } // namespace disasm | 57 } // namespace disasm |
56 | 58 |
57 #endif // V8_DISASM_H_ | 59 #endif // V8_DISASM_H_ |
OLD | NEW |