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

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

Issue 240213004: Fixes a problem with the recovery of contexts in the debugger at closure calls. (Closed) Base URL: https://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 | « no previous file | 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 177 void PrintToJSONObject(JSONObject* jsobj);
178 178
179 private: 179 private:
180 void PrintContextMismatchError(const String& var_name,
181 intptr_t ctx_slot,
182 intptr_t frame_ctx_level,
183 intptr_t var_ctx_level);
184
180 intptr_t PcDescIndex(); 185 intptr_t PcDescIndex();
181 intptr_t TryIndex(); 186 intptr_t TryIndex();
182 void GetPcDescriptors(); 187 void GetPcDescriptors();
183 void GetVarDescriptors(); 188 void GetVarDescriptors();
184 void GetDescIndices(); 189 void GetDescIndices();
185 190
186 RawObject* GetLocalVar(intptr_t slot_index); 191 RawObject* GetLocalVar(intptr_t slot_index);
187 RawInstance* GetLocalInstanceVar(intptr_t slot_index); 192 RawInstance* GetLocalInstanceVar(intptr_t slot_index);
188 RawContext* GetLocalContextVar(intptr_t slot_index); 193 RawContext* GetLocalContextVar(intptr_t slot_index);
189 194
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 492
488 friend class Isolate; 493 friend class Isolate;
489 friend class SourceBreakpoint; 494 friend class SourceBreakpoint;
490 DISALLOW_COPY_AND_ASSIGN(Debugger); 495 DISALLOW_COPY_AND_ASSIGN(Debugger);
491 }; 496 };
492 497
493 498
494 } // namespace dart 499 } // namespace dart
495 500
496 #endif // VM_DEBUGGER_H_ 501 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698