Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: runtime/vm/debugger.h

Issue 249533003: Support evaluation of expressions in context of a stack frame (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698