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 VM_DISASSEMBLER_H_ | 5 #ifndef VM_DISASSEMBLER_H_ |
6 #define VM_DISASSEMBLER_H_ | 6 #define 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" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Decodes one instruction. | 129 // Decodes one instruction. |
130 // Writes a hexadecimal representation into the hex_buffer and a | 130 // Writes a hexadecimal representation into the hex_buffer and a |
131 // human-readable representation into the human_buffer. | 131 // human-readable representation into the human_buffer. |
132 // Writes the length of the decoded instruction in bytes in out_instr_len. | 132 // Writes the length of the decoded instruction in bytes in out_instr_len. |
133 static void DecodeInstruction(char* hex_buffer, intptr_t hex_size, | 133 static void DecodeInstruction(char* hex_buffer, intptr_t hex_size, |
134 char* human_buffer, intptr_t human_size, | 134 char* human_buffer, intptr_t human_size, |
135 int* out_instr_len, uword pc); | 135 int* out_instr_len, uword pc); |
136 | 136 |
137 static bool CanFindOldObject(uword addr); | 137 static bool CanFindOldObject(uword addr); |
138 | 138 |
| 139 static void DisassembleCode(const Function& function, bool optimized); |
| 140 |
139 private: | 141 private: |
140 static const int kHexadecimalBufferSize = 32; | 142 static const int kHexadecimalBufferSize = 32; |
141 static const int kUserReadableBufferSize = 256; | 143 static const int kUserReadableBufferSize = 256; |
142 }; | 144 }; |
143 | 145 |
144 } // namespace dart | 146 } // namespace dart |
145 | 147 |
146 #endif // VM_DISASSEMBLER_H_ | 148 #endif // VM_DISASSEMBLER_H_ |
OLD | NEW |