| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 friend class Debugger; | 113 friend class Debugger; |
| 114 DISALLOW_COPY_AND_ASSIGN(CodeBreakpoint); | 114 DISALLOW_COPY_AND_ASSIGN(CodeBreakpoint); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 | 117 |
| 118 // ActivationFrame represents one dart function activation frame | 118 // ActivationFrame represents one dart function activation frame |
| 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 ActivationFrame(uword pc, uword fp, uword sp, |
| 123 const Code& code, const Context& ctx); |
| 123 | 124 |
| 124 uword pc() const { return pc_; } | 125 uword pc() const { return pc_; } |
| 125 uword fp() const { return fp_; } | 126 uword fp() const { return fp_; } |
| 126 uword sp() const { return sp_; } | 127 uword sp() const { return sp_; } |
| 127 | 128 |
| 128 const Function& DartFunction(); | 129 const Function& DartFunction(); |
| 129 const Code& DartCode(); | 130 const Code& DartCode(); |
| 130 RawString* QualifiedFunctionName(); | 131 RawString* QualifiedFunctionName(); |
| 131 RawString* SourceUrl(); | 132 RawString* SourceUrl(); |
| 132 RawScript* SourceScript(); | 133 RawScript* SourceScript(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 160 void GetDescIndices(); | 161 void GetDescIndices(); |
| 161 RawInstance* GetLocalVarValue(intptr_t slot_index); | 162 RawInstance* GetLocalVarValue(intptr_t slot_index); |
| 162 RawInstance* GetInstanceCallReceiver(intptr_t num_actual_args); | 163 RawInstance* GetInstanceCallReceiver(intptr_t num_actual_args); |
| 163 | 164 |
| 164 uword pc_; | 165 uword pc_; |
| 165 uword fp_; | 166 uword fp_; |
| 166 uword sp_; | 167 uword sp_; |
| 167 | 168 |
| 168 // The anchor of the context chain for this function. | 169 // The anchor of the context chain for this function. |
| 169 const Context& ctx_; | 170 const Context& ctx_; |
| 170 | 171 const Code& code_; |
| 171 Function& function_; | 172 const Function& function_; |
| 172 Code& code_; | |
| 173 intptr_t token_pos_; | 173 intptr_t token_pos_; |
| 174 intptr_t pc_desc_index_; | 174 intptr_t pc_desc_index_; |
| 175 intptr_t line_number_; | 175 intptr_t line_number_; |
| 176 intptr_t context_level_; | 176 intptr_t context_level_; |
| 177 | 177 |
| 178 bool vars_initialized_; | 178 bool vars_initialized_; |
| 179 LocalVarDescriptors& var_descriptors_; | 179 LocalVarDescriptors& var_descriptors_; |
| 180 ZoneGrowableArray<intptr_t> desc_indices_; | 180 ZoneGrowableArray<intptr_t> desc_indices_; |
| 181 PcDescriptors& pc_desc_; | 181 PcDescriptors& pc_desc_; |
| 182 | 182 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 static EventHandler* event_handler_; | 376 static EventHandler* event_handler_; |
| 377 | 377 |
| 378 friend class SourceBreakpoint; | 378 friend class SourceBreakpoint; |
| 379 DISALLOW_COPY_AND_ASSIGN(Debugger); | 379 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 | 382 |
| 383 } // namespace dart | 383 } // namespace dart |
| 384 | 384 |
| 385 #endif // VM_DEBUGGER_H_ | 385 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |