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

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

Issue 577423005: Fix context handling in for-in loops (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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/parser.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 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 ActivationFrame* frame = stack->FrameAt(i); 726 ActivationFrame* frame = stack->FrameAt(i);
727 OS::PrintErr("#%04" Pd " %s", i, frame->ToCString()); 727 OS::PrintErr("#%04" Pd " %s", i, frame->ToCString());
728 } 728 }
729 729
730 OS::PrintErr("-------------------------\n" 730 OS::PrintErr("-------------------------\n"
731 "All frames...\n\n"); 731 "All frames...\n\n");
732 StackFrameIterator iterator(false); 732 StackFrameIterator iterator(false);
733 StackFrame* frame = iterator.NextFrame(); 733 StackFrame* frame = iterator.NextFrame();
734 intptr_t num = 0; 734 intptr_t num = 0;
735 while ((frame != NULL)) { 735 while ((frame != NULL)) {
736 OS::PrintErr("#%04" Pd " %s\n", num++, frame->ToCString());
736 frame = iterator.NextFrame(); 737 frame = iterator.NextFrame();
737 OS::PrintErr("#%04" Pd " %s\n", num++, frame->ToCString());
738 } 738 }
739 } 739 }
740 740
741 741
742 void ActivationFrame::VariableAt(intptr_t i, 742 void ActivationFrame::VariableAt(intptr_t i,
743 String* name, 743 String* name,
744 intptr_t* token_pos, 744 intptr_t* token_pos,
745 intptr_t* end_pos, 745 intptr_t* end_pos,
746 Instance* value) { 746 Instance* value) {
747 GetDescIndices(); 747 GetDescIndices();
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after
2583 } 2583 }
2584 2584
2585 2585
2586 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2586 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2587 ASSERT(bpt->next() == NULL); 2587 ASSERT(bpt->next() == NULL);
2588 bpt->set_next(code_breakpoints_); 2588 bpt->set_next(code_breakpoints_);
2589 code_breakpoints_ = bpt; 2589 code_breakpoints_ = bpt;
2590 } 2590 }
2591 2591
2592 } // namespace dart 2592 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698