| OLD | NEW |
| 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef SRC_VM_DEBUG_INFO_H_ | 5 #ifndef SRC_VM_DEBUG_INFO_H_ |
| 6 #define SRC_VM_DEBUG_INFO_H_ | 6 #define SRC_VM_DEBUG_INFO_H_ |
| 7 | 7 |
| 8 #ifndef FLETCH_ENABLE_LIVE_CODING | 8 #ifndef DARTINO_ENABLE_LIVE_CODING |
| 9 #include "src/vm/debug_info_no_live_coding.h" | 9 #include "src/vm/debug_info_no_live_coding.h" |
| 10 #else // FLETCH_ENABLE_LIVE_CODING | 10 #else // DARTINO_ENABLE_LIVE_CODING |
| 11 | 11 |
| 12 #include "src/vm/hash_map.h" | 12 #include "src/vm/hash_map.h" |
| 13 #include "src/vm/object.h" | 13 #include "src/vm/object.h" |
| 14 | 14 |
| 15 namespace fletch { | 15 namespace dartino { |
| 16 | 16 |
| 17 class Breakpoint { | 17 class Breakpoint { |
| 18 public: | 18 public: |
| 19 Breakpoint(Function* function, int bytecode_index, int id, bool is_one_shot, | 19 Breakpoint(Function* function, int bytecode_index, int id, bool is_one_shot, |
| 20 Coroutine* coroutine = NULL, word stack_height = 0); | 20 Coroutine* coroutine = NULL, word stack_height = 0); |
| 21 | 21 |
| 22 Function* function() const { return function_; } | 22 Function* function() const { return function_; } |
| 23 int bytecode_index() const { return bytecode_index_; } | 23 int bytecode_index() const { return bytecode_index_; } |
| 24 int id() const { return id_; } | 24 int id() const { return id_; } |
| 25 bool is_one_shot() const { return is_one_shot_; } | 25 bool is_one_shot() const { return is_one_shot_; } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 bool is_stepping_; | 96 bool is_stepping_; |
| 97 bool is_at_breakpoint_; | 97 bool is_at_breakpoint_; |
| 98 int current_breakpoint_id_; | 98 int current_breakpoint_id_; |
| 99 | 99 |
| 100 typedef HashMap<uint8_t*, Breakpoint> BreakpointMap; | 100 typedef HashMap<uint8_t*, Breakpoint> BreakpointMap; |
| 101 BreakpointMap breakpoints_; | 101 BreakpointMap breakpoints_; |
| 102 int next_breakpoint_id_; | 102 int next_breakpoint_id_; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace fletch | 105 } // namespace dartino |
| 106 | 106 |
| 107 #endif // FLETCH_ENABLE_LIVE_CODING | 107 #endif // DARTINO_ENABLE_LIVE_CODING |
| 108 | 108 |
| 109 #endif // SRC_VM_DEBUG_INFO_H_ | 109 #endif // SRC_VM_DEBUG_INFO_H_ |
| OLD | NEW |