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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 intptr_t NumLocalVariables(); | 170 intptr_t NumLocalVariables(); |
171 | 171 |
172 void VariableAt(intptr_t i, | 172 void VariableAt(intptr_t i, |
173 String* name, | 173 String* name, |
174 intptr_t* token_pos, | 174 intptr_t* token_pos, |
175 intptr_t* end_pos, | 175 intptr_t* end_pos, |
176 Instance* value); | 176 Instance* value); |
177 | 177 |
178 RawArray* GetLocalVariables(); | 178 RawArray* GetLocalVariables(); |
| 179 RawObject* GetReceiver(); |
| 180 |
179 RawContext* GetSavedEntryContext(); | 181 RawContext* GetSavedEntryContext(); |
180 RawContext* GetSavedCurrentContext(); | 182 RawContext* GetSavedCurrentContext(); |
181 | 183 |
| 184 RawObject* Evaluate(const String& expr); |
| 185 |
182 void PrintToJSONObject(JSONObject* jsobj); | 186 void PrintToJSONObject(JSONObject* jsobj); |
183 | 187 |
184 private: | 188 private: |
185 void PrintContextMismatchError(const String& var_name, | 189 void PrintContextMismatchError(const String& var_name, |
186 intptr_t ctx_slot, | 190 intptr_t ctx_slot, |
187 intptr_t frame_ctx_level, | 191 intptr_t frame_ctx_level, |
188 intptr_t var_ctx_level); | 192 intptr_t var_ctx_level); |
189 | 193 |
190 intptr_t PcDescIndex(); | 194 intptr_t PcDescIndex(); |
191 intptr_t TryIndex(); | 195 intptr_t TryIndex(); |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 501 |
498 friend class Isolate; | 502 friend class Isolate; |
499 friend class SourceBreakpoint; | 503 friend class SourceBreakpoint; |
500 DISALLOW_COPY_AND_ASSIGN(Debugger); | 504 DISALLOW_COPY_AND_ASSIGN(Debugger); |
501 }; | 505 }; |
502 | 506 |
503 | 507 |
504 } // namespace dart | 508 } // namespace dart |
505 | 509 |
506 #endif // VM_DEBUGGER_H_ | 510 #endif // VM_DEBUGGER_H_ |
OLD | NEW |