OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_DEBUGGER_H_ | 5 #ifndef VM_DEBUGGER_H_ |
6 #define VM_DEBUGGER_H_ | 6 #define VM_DEBUGGER_H_ |
7 | 7 |
8 #include "include/dart_tools_api.h" | 8 #include "include/dart_tools_api.h" |
9 | 9 |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 RawCode* code_; | 220 RawCode* code_; |
221 TokenPosition token_pos_; | 221 TokenPosition token_pos_; |
222 uword pc_; | 222 uword pc_; |
223 intptr_t line_number_; | 223 intptr_t line_number_; |
224 bool is_enabled_; | 224 bool is_enabled_; |
225 | 225 |
226 BreakpointLocation* bpt_location_; | 226 BreakpointLocation* bpt_location_; |
227 CodeBreakpoint* next_; | 227 CodeBreakpoint* next_; |
228 | 228 |
229 RawPcDescriptors::Kind breakpoint_kind_; | 229 RawPcDescriptors::Kind breakpoint_kind_; |
| 230 #if !defined(TARGET_ARCH_DBC) |
230 RawCode* saved_value_; | 231 RawCode* saved_value_; |
| 232 #else |
| 233 // When running on the DBC interpreter we patch bytecode in place with |
| 234 // DebugBreak. This is an instruction that was replaced. DebugBreak |
| 235 // will execute it after the breakpoint. |
| 236 Instr saved_value_; |
| 237 #endif |
231 | 238 |
232 friend class Debugger; | 239 friend class Debugger; |
233 DISALLOW_COPY_AND_ASSIGN(CodeBreakpoint); | 240 DISALLOW_COPY_AND_ASSIGN(CodeBreakpoint); |
234 }; | 241 }; |
235 | 242 |
236 | 243 |
237 // ActivationFrame represents one dart function activation frame | 244 // ActivationFrame represents one dart function activation frame |
238 // on the call stack. | 245 // on the call stack. |
239 class ActivationFrame : public ZoneAllocated { | 246 class ActivationFrame : public ZoneAllocated { |
240 public: | 247 public: |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 | 729 |
723 friend class Isolate; | 730 friend class Isolate; |
724 friend class BreakpointLocation; | 731 friend class BreakpointLocation; |
725 DISALLOW_COPY_AND_ASSIGN(Debugger); | 732 DISALLOW_COPY_AND_ASSIGN(Debugger); |
726 }; | 733 }; |
727 | 734 |
728 | 735 |
729 } // namespace dart | 736 } // namespace dart |
730 | 737 |
731 #endif // VM_DEBUGGER_H_ | 738 #endif // VM_DEBUGGER_H_ |
OLD | NEW |