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

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

Issue 9117042: Fix local variable info in debugger stack trace. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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.cc ('k') | no next file » | 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 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "vm/code_index_table.h" 7 #include "vm/code_index_table.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 String* name, 188 String* name,
189 intptr_t* token_pos, 189 intptr_t* token_pos,
190 intptr_t* end_pos, 190 intptr_t* end_pos,
191 Instance* value) { 191 Instance* value) {
192 GetLocalVariables(); 192 GetLocalVariables();
193 ASSERT(i < desc_indices_.length()); 193 ASSERT(i < desc_indices_.length());
194 ASSERT(name != NULL); 194 ASSERT(name != NULL);
195 intptr_t desc_index = desc_indices_[i]; 195 intptr_t desc_index = desc_indices_[i];
196 *name ^= var_descriptors_->GetName(desc_index); 196 *name ^= var_descriptors_->GetName(desc_index);
197 intptr_t scope_id; 197 intptr_t scope_id;
198 var_descriptors_->GetScopeInfo(i, &scope_id, token_pos, end_pos); 198 var_descriptors_->GetScopeInfo(desc_index, &scope_id, token_pos, end_pos);
199 ASSERT(value != NULL); 199 ASSERT(value != NULL);
200 *value = GetLocalVarValue(var_descriptors_->GetSlotIndex(i)); 200 *value = GetLocalVarValue(var_descriptors_->GetSlotIndex(desc_index));
201 } 201 }
202 202
203 203
204 const char* ActivationFrame::ToCString() { 204 const char* ActivationFrame::ToCString() {
205 const char* kFormat = "Function: '%s' url: '%s' line: %d"; 205 const char* kFormat = "Function: '%s' url: '%s' line: %d";
206 206
207 const Function& func = DartFunction(); 207 const Function& func = DartFunction();
208 const String& url = String::Handle(SourceUrl()); 208 const String& url = String::Handle(SourceUrl());
209 intptr_t line = LineNumber(); 209 intptr_t line = LineNumber();
210 const char* func_name = Debugger::QualifiedFunctionName(func); 210 const char* func_name = Debugger::QualifiedFunctionName(func);
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 530
531 531
532 void Debugger::RegisterBreakpoint(Breakpoint* bpt) { 532 void Debugger::RegisterBreakpoint(Breakpoint* bpt) {
533 ASSERT(bpt->next() == NULL); 533 ASSERT(bpt->next() == NULL);
534 bpt->set_next(this->breakpoints_); 534 bpt->set_next(this->breakpoints_);
535 this->breakpoints_ = bpt; 535 this->breakpoints_ = bpt;
536 } 536 }
537 537
538 538
539 } // namespace dart 539 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698