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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void VariableAt(intptr_t i, | 167 void VariableAt(intptr_t i, |
168 String* name, | 168 String* name, |
169 intptr_t* token_pos, | 169 intptr_t* token_pos, |
170 intptr_t* end_pos, | 170 intptr_t* end_pos, |
171 Instance* value); | 171 Instance* value); |
172 | 172 |
173 RawArray* GetLocalVariables(); | 173 RawArray* GetLocalVariables(); |
174 RawContext* GetSavedEntryContext(); | 174 RawContext* GetSavedEntryContext(); |
175 RawContext* GetSavedCurrentContext(); | 175 RawContext* GetSavedCurrentContext(); |
176 | 176 |
| 177 void PrintToJSONObject(JSONObject* jsobj); |
| 178 |
177 private: | 179 private: |
178 intptr_t PcDescIndex(); | 180 intptr_t PcDescIndex(); |
179 intptr_t TryIndex(); | 181 intptr_t TryIndex(); |
180 void GetPcDescriptors(); | 182 void GetPcDescriptors(); |
181 void GetVarDescriptors(); | 183 void GetVarDescriptors(); |
182 void GetDescIndices(); | 184 void GetDescIndices(); |
183 | 185 |
184 RawObject* GetLocalVar(intptr_t slot_index); | 186 RawObject* GetLocalVar(intptr_t slot_index); |
185 RawInstance* GetLocalInstanceVar(intptr_t slot_index); | 187 RawInstance* GetLocalInstanceVar(intptr_t slot_index); |
186 RawContext* GetLocalContextVar(intptr_t slot_index); | 188 RawContext* GetLocalContextVar(intptr_t slot_index); |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 479 |
478 friend class Isolate; | 480 friend class Isolate; |
479 friend class SourceBreakpoint; | 481 friend class SourceBreakpoint; |
480 DISALLOW_COPY_AND_ASSIGN(Debugger); | 482 DISALLOW_COPY_AND_ASSIGN(Debugger); |
481 }; | 483 }; |
482 | 484 |
483 | 485 |
484 } // namespace dart | 486 } // namespace dart |
485 | 487 |
486 #endif // VM_DEBUGGER_H_ | 488 #endif // VM_DEBUGGER_H_ |
OLD | NEW |