| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_VM_DISASSEMBLER_H_ | 5 #ifndef RUNTIME_VM_DISASSEMBLER_H_ |
| 6 #define RUNTIME_VM_DISASSEMBLER_H_ | 6 #define RUNTIME_VM_DISASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| 11 #include "vm/log.h" | 11 #include "vm/log.h" |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 // Froward declaration. | 15 // Forward declaration. |
| 16 class MemoryRegion; | 16 class MemoryRegion; |
| 17 class JSONArray; | 17 class JSONArray; |
| 18 | 18 |
| 19 // Disassembly formatter interface, which consumes the | 19 // Disassembly formatter interface, which consumes the |
| 20 // disassembled instructions in any desired form. | 20 // disassembled instructions in any desired form. |
| 21 class DisassemblyFormatter { | 21 class DisassemblyFormatter { |
| 22 public: | 22 public: |
| 23 DisassemblyFormatter() {} | 23 DisassemblyFormatter() {} |
| 24 virtual ~DisassemblyFormatter() {} | 24 virtual ~DisassemblyFormatter() {} |
| 25 | 25 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 const Code& code, | 143 const Code& code, |
| 144 bool optimized); | 144 bool optimized); |
| 145 | 145 |
| 146 static const int kHexadecimalBufferSize = 32; | 146 static const int kHexadecimalBufferSize = 32; |
| 147 static const int kUserReadableBufferSize = 256; | 147 static const int kUserReadableBufferSize = 256; |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace dart | 150 } // namespace dart |
| 151 | 151 |
| 152 #endif // RUNTIME_VM_DISASSEMBLER_H_ | 152 #endif // RUNTIME_VM_DISASSEMBLER_H_ |
| OLD | NEW |