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

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

Issue 9264058: Debugger API: get local variables of an activation frame (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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/include/dart_debugger_api.h ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const char* ToCString(); 67 const char* ToCString();
68 68
69 intptr_t NumLocalVariables(); 69 intptr_t NumLocalVariables();
70 70
71 void VariableAt(intptr_t i, 71 void VariableAt(intptr_t i,
72 String* name, 72 String* name,
73 intptr_t* token_pos, 73 intptr_t* token_pos,
74 intptr_t* end_pos, 74 intptr_t* end_pos,
75 Instance* value); 75 Instance* value);
76 76
77 RawArray* GetLocalVariables();
78
77 private: 79 private:
78 void GetLocalVariables(); 80 void GetDescIndices();
79 RawInstance* GetLocalVarValue(intptr_t slot_index); 81 RawInstance* GetLocalVarValue(intptr_t slot_index);
80 82
81 uword pc_; 83 uword pc_;
82 uword fp_; 84 uword fp_;
83 Function& function_; 85 Function& function_;
84 intptr_t token_index_; 86 intptr_t token_index_;
85 intptr_t line_number_; 87 intptr_t line_number_;
86 88
87 LocalVarDescriptors* var_descriptors_; 89 LocalVarDescriptors* var_descriptors_;
88 ZoneGrowableArray<intptr_t> desc_indices_; 90 ZoneGrowableArray<intptr_t> desc_indices_;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 bool initialized_; 171 bool initialized_;
170 BreakpointHandler* bp_handler_; 172 BreakpointHandler* bp_handler_;
171 Breakpoint* breakpoints_; 173 Breakpoint* breakpoints_;
172 DISALLOW_COPY_AND_ASSIGN(Debugger); 174 DISALLOW_COPY_AND_ASSIGN(Debugger);
173 }; 175 };
174 176
175 177
176 } // namespace dart 178 } // namespace dart
177 179
178 #endif // VM_DEBUGGER_H_ 180 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_debugger_api.h ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698