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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 121 } |
122 | 122 |
123 // Decodes one instruction. | 123 // Decodes one instruction. |
124 // Writes a hexadecimal representation into the hex_buffer and a | 124 // Writes a hexadecimal representation into the hex_buffer and a |
125 // human-readable representation into the human_buffer. | 125 // human-readable representation into the human_buffer. |
126 // Writes the length of the decoded instruction in bytes in out_instr_len. | 126 // Writes the length of the decoded instruction in bytes in out_instr_len. |
127 static void DecodeInstruction(char* hex_buffer, intptr_t hex_size, | 127 static void DecodeInstruction(char* hex_buffer, intptr_t hex_size, |
128 char* human_buffer, intptr_t human_size, | 128 char* human_buffer, intptr_t human_size, |
129 int* out_instr_len, uword pc); | 129 int* out_instr_len, uword pc); |
130 | 130 |
| 131 static bool CanFindOldObject(uword addr); |
| 132 |
131 private: | 133 private: |
132 static const int kHexadecimalBufferSize = 32; | 134 static const int kHexadecimalBufferSize = 32; |
133 static const int kUserReadableBufferSize = 256; | 135 static const int kUserReadableBufferSize = 256; |
134 }; | 136 }; |
135 | 137 |
136 } // namespace dart | 138 } // namespace dart |
137 | 139 |
138 #endif // VM_DISASSEMBLER_H_ | 140 #endif // VM_DISASSEMBLER_H_ |
OLD | NEW |