| 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_debugger_api.h" | 8 #include "include/dart_debugger_api.h" |
| 9 | 9 |
| 10 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // on the call stack. | 119 // on the call stack. |
| 120 class ActivationFrame : public ZoneAllocated { | 120 class ActivationFrame : public ZoneAllocated { |
| 121 public: | 121 public: |
| 122 explicit ActivationFrame(uword pc, uword fp, uword sp, const Context& ctx); | 122 explicit ActivationFrame(uword pc, uword fp, uword sp, const Context& ctx); |
| 123 | 123 |
| 124 uword pc() const { return pc_; } | 124 uword pc() const { return pc_; } |
| 125 uword fp() const { return fp_; } | 125 uword fp() const { return fp_; } |
| 126 uword sp() const { return sp_; } | 126 uword sp() const { return sp_; } |
| 127 | 127 |
| 128 const Function& DartFunction(); | 128 const Function& DartFunction(); |
| 129 const Code& DartCode(); |
| 129 RawString* QualifiedFunctionName(); | 130 RawString* QualifiedFunctionName(); |
| 130 RawString* SourceUrl(); | 131 RawString* SourceUrl(); |
| 131 RawScript* SourceScript(); | 132 RawScript* SourceScript(); |
| 132 RawLibrary* Library(); | 133 RawLibrary* Library(); |
| 133 intptr_t TokenPos(); | 134 intptr_t TokenPos(); |
| 134 intptr_t LineNumber(); | 135 intptr_t LineNumber(); |
| 135 | 136 |
| 136 // The context level of a frame is the context level at the | 137 // The context level of a frame is the context level at the |
| 137 // PC/token index of the frame. It determines the depth of the context | 138 // PC/token index of the frame. It determines the depth of the context |
| 138 // chain that belongs to the function of this activation frame. | 139 // chain that belongs to the function of this activation frame. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 160 RawInstance* GetInstanceCallReceiver(intptr_t num_actual_args); | 161 RawInstance* GetInstanceCallReceiver(intptr_t num_actual_args); |
| 161 | 162 |
| 162 uword pc_; | 163 uword pc_; |
| 163 uword fp_; | 164 uword fp_; |
| 164 uword sp_; | 165 uword sp_; |
| 165 | 166 |
| 166 // The anchor of the context chain for this function. | 167 // The anchor of the context chain for this function. |
| 167 const Context& ctx_; | 168 const Context& ctx_; |
| 168 | 169 |
| 169 Function& function_; | 170 Function& function_; |
| 171 Code& code_; |
| 170 intptr_t token_pos_; | 172 intptr_t token_pos_; |
| 171 intptr_t pc_desc_index_; | 173 intptr_t pc_desc_index_; |
| 172 intptr_t line_number_; | 174 intptr_t line_number_; |
| 173 intptr_t context_level_; | 175 intptr_t context_level_; |
| 174 | 176 |
| 175 bool vars_initialized_; | 177 bool vars_initialized_; |
| 176 LocalVarDescriptors& var_descriptors_; | 178 LocalVarDescriptors& var_descriptors_; |
| 177 ZoneGrowableArray<intptr_t> desc_indices_; | 179 ZoneGrowableArray<intptr_t> desc_indices_; |
| 178 PcDescriptors& pc_desc_; | 180 PcDescriptors& pc_desc_; |
| 179 | 181 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 static EventHandler* event_handler_; | 369 static EventHandler* event_handler_; |
| 368 | 370 |
| 369 friend class SourceBreakpoint; | 371 friend class SourceBreakpoint; |
| 370 DISALLOW_COPY_AND_ASSIGN(Debugger); | 372 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 371 }; | 373 }; |
| 372 | 374 |
| 373 | 375 |
| 374 } // namespace dart | 376 } // namespace dart |
| 375 | 377 |
| 376 #endif // VM_DEBUGGER_H_ | 378 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |