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

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

Issue 24203004: Dart VM: Simplify code generation for equality operators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed single stepping, added debugger test Created 7 years, 2 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/intermediate_language_arm.cc » ('j') | runtime/vm/parser.cc » ('J')
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 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 if (in_event_notification_) return; 1591 if (in_event_notification_) return;
1592 1592
1593 // Check whether we are in a Dart function that the user is 1593 // Check whether we are in a Dart function that the user is
1594 // interested in. 1594 // interested in.
1595 ActivationFrame* frame = TopDartFrame(); 1595 ActivationFrame* frame = TopDartFrame();
1596 ASSERT(frame != NULL); 1596 ASSERT(frame != NULL);
1597 const Function& func = frame->function(); 1597 const Function& func = frame->function();
1598 if (!IsDebuggable(func)) { 1598 if (!IsDebuggable(func)) {
1599 return; 1599 return;
1600 } 1600 }
1601 if (frame->TokenPos() == Scanner::kDummyTokenIndex) {
1602 return;
1603 }
1601 1604
1602 if (FLAG_verbose_debug) { 1605 if (FLAG_verbose_debug) {
1603 OS::Print(">>> single step break at %s:%" Pd " (func %s token %" Pd ")\n", 1606 OS::Print(">>> single step break at %s:%" Pd " (func %s token %" Pd ")\n",
1604 String::Handle(frame->SourceUrl()).ToCString(), 1607 String::Handle(frame->SourceUrl()).ToCString(),
1605 frame->LineNumber(), 1608 frame->LineNumber(),
1606 String::Handle(frame->QualifiedFunctionName()).ToCString(), 1609 String::Handle(frame->QualifiedFunctionName()).ToCString(),
1607 frame->TokenPos()); 1610 frame->TokenPos());
1608 } 1611 }
1609 1612
1610 stack_trace_ = CollectStackTrace(); 1613 stack_trace_ = CollectStackTrace();
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1877 } 1880 }
1878 1881
1879 1882
1880 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 1883 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
1881 ASSERT(bpt->next() == NULL); 1884 ASSERT(bpt->next() == NULL);
1882 bpt->set_next(code_breakpoints_); 1885 bpt->set_next(code_breakpoints_);
1883 code_breakpoints_ = bpt; 1886 code_breakpoints_ = bpt;
1884 } 1887 }
1885 1888
1886 } // namespace dart 1889 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698