| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 intptr_t NumLocalVariables(); | 161 intptr_t NumLocalVariables(); |
| 162 | 162 |
| 163 void VariableAt(intptr_t i, | 163 void VariableAt(intptr_t i, |
| 164 String* name, | 164 String* name, |
| 165 intptr_t* token_pos, | 165 intptr_t* token_pos, |
| 166 intptr_t* end_pos, | 166 intptr_t* end_pos, |
| 167 Instance* value); | 167 Instance* value); |
| 168 | 168 |
| 169 RawArray* GetLocalVariables(); | 169 RawArray* GetLocalVariables(); |
| 170 RawContext* GetSavedEntryContext(const Context& ctx); | 170 RawContext* GetSavedEntryContext(); |
| 171 RawContext* GetSavedEntryContextNew(); | |
| 172 RawContext* GetSavedCurrentContext(); | 171 RawContext* GetSavedCurrentContext(); |
| 173 | 172 |
| 174 private: | 173 private: |
| 175 intptr_t PcDescIndex(); | 174 intptr_t PcDescIndex(); |
| 176 intptr_t TryIndex(); | 175 intptr_t TryIndex(); |
| 177 void GetPcDescriptors(); | 176 void GetPcDescriptors(); |
| 178 void GetVarDescriptors(); | 177 void GetVarDescriptors(); |
| 179 void GetDescIndices(); | 178 void GetDescIndices(); |
| 180 | 179 |
| 181 RawObject* GetLocalVar(intptr_t slot_index); | 180 RawObject* GetLocalVar(intptr_t slot_index); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 intptr_t token_pos); | 378 intptr_t token_pos); |
| 380 void MakeCodeBreakpointsAt(const Function& func, | 379 void MakeCodeBreakpointsAt(const Function& func, |
| 381 intptr_t token_pos, | 380 intptr_t token_pos, |
| 382 SourceBreakpoint* bpt); | 381 SourceBreakpoint* bpt); |
| 383 // Returns NULL if no breakpoint exists for the given address. | 382 // Returns NULL if no breakpoint exists for the given address. |
| 384 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); | 383 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); |
| 385 | 384 |
| 386 void SyncBreakpoint(SourceBreakpoint* bpt); | 385 void SyncBreakpoint(SourceBreakpoint* bpt); |
| 387 | 386 |
| 388 ActivationFrame* TopDartFrame() const; | 387 ActivationFrame* TopDartFrame() const; |
| 389 static DebuggerStackTrace* CollectStackTrace(); | |
| 390 static ActivationFrame* CollectDartFrame(Isolate* isolate, | 388 static ActivationFrame* CollectDartFrame(Isolate* isolate, |
| 391 uword pc, | 389 uword pc, |
| 392 StackFrame* frame, | 390 StackFrame* frame, |
| 393 const Code& code, | 391 const Code& code, |
| 394 const Array& deopt_frame, | 392 const Array& deopt_frame, |
| 395 intptr_t deopt_frame_offset, | 393 intptr_t deopt_frame_offset, |
| 396 ActivationFrame* callee_activation, | 394 ActivationFrame* callee_activation, |
| 397 const Context& entry_ctx); | 395 const Context& entry_ctx); |
| 398 static RawArray* DeoptimizeToArray(Isolate* isolate, | 396 static RawArray* DeoptimizeToArray(Isolate* isolate, |
| 399 StackFrame* frame, | 397 StackFrame* frame, |
| 400 const Code& code); | 398 const Code& code); |
| 401 static DebuggerStackTrace* CollectStackTraceNew(); | 399 static DebuggerStackTrace* CollectStackTrace(); |
| 402 void SignalBpResolved(SourceBreakpoint *bpt); | 400 void SignalBpResolved(SourceBreakpoint *bpt); |
| 403 void SignalPausedEvent(ActivationFrame* top_frame, | 401 void SignalPausedEvent(ActivationFrame* top_frame, |
| 404 SourceBreakpoint* bpt); | 402 SourceBreakpoint* bpt); |
| 405 | 403 |
| 406 intptr_t nextId() { return next_id_++; } | 404 intptr_t nextId() { return next_id_++; } |
| 407 | 405 |
| 408 bool ShouldPauseOnException(DebuggerStackTrace* stack_trace, | 406 bool ShouldPauseOnException(DebuggerStackTrace* stack_trace, |
| 409 const Instance& exc); | 407 const Instance& exc); |
| 410 | 408 |
| 411 void CollectLibraryFields(const GrowableObjectArray& field_list, | 409 void CollectLibraryFields(const GrowableObjectArray& field_list, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 444 |
| 447 friend class Isolate; | 445 friend class Isolate; |
| 448 friend class SourceBreakpoint; | 446 friend class SourceBreakpoint; |
| 449 DISALLOW_COPY_AND_ASSIGN(Debugger); | 447 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 450 }; | 448 }; |
| 451 | 449 |
| 452 | 450 |
| 453 } // namespace dart | 451 } // namespace dart |
| 454 | 452 |
| 455 #endif // VM_DEBUGGER_H_ | 453 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |