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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); | 139 static void DisassembleCode(const Function& function, bool optimized); |
| 140 static void DisassembleCodeUnoptimized( |
| 141 const Function& function, bool optimized); |
140 | 142 |
141 private: | 143 private: |
| 144 static void DisassembleCodeHelper( |
| 145 const char* function_fullname, const Code& code, bool optimized); |
| 146 |
142 static const int kHexadecimalBufferSize = 32; | 147 static const int kHexadecimalBufferSize = 32; |
143 static const int kUserReadableBufferSize = 256; | 148 static const int kUserReadableBufferSize = 256; |
144 }; | 149 }; |
145 | 150 |
146 } // namespace dart | 151 } // namespace dart |
147 | 152 |
148 #endif // VM_DISASSEMBLER_H_ | 153 #endif // VM_DISASSEMBLER_H_ |
OLD | NEW |