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

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

Issue 9580014: Placate Windows compiler (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | 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_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 894
895 // TODO(hausner): handle closure functions. 895 // TODO(hausner): handle closure functions.
896 void Debugger::NotifyCompilation(const Function& func) { 896 void Debugger::NotifyCompilation(const Function& func) {
897 SourceBreakpoint* bpt = src_breakpoints_; 897 SourceBreakpoint* bpt = src_breakpoints_;
898 while (bpt != NULL) { 898 while (bpt != NULL) {
899 if (func.raw() == bpt->function()) { 899 if (func.raw() == bpt->function()) {
900 if (verbose) { 900 if (verbose) {
901 OS::Print("Enable latent breakpoint for function '%s'\n", 901 OS::Print("Enable latent breakpoint for function '%s'\n",
902 String::Handle(func.name()).ToCString()); 902 String::Handle(func.name()).ToCString());
903 } 903 }
904 CodeBreakpoint* cbpt = MakeCodeBreakpoint(bpt); 904 MakeCodeBreakpoint(bpt);
905 bpt->Enable(); 905 bpt->Enable(); // Enables the code breakpoint as well.
906 } 906 }
907 bpt = bpt->next(); 907 bpt = bpt->next();
908 } 908 }
909 } 909 }
910 910
911 911
912 CodeBreakpoint* Debugger::GetCodeBreakpoint(uword breakpoint_address) { 912 CodeBreakpoint* Debugger::GetCodeBreakpoint(uword breakpoint_address) {
913 CodeBreakpoint* bpt = code_breakpoints_; 913 CodeBreakpoint* bpt = code_breakpoints_;
914 while (bpt != NULL) { 914 while (bpt != NULL) {
915 if (bpt->pc() == breakpoint_address) { 915 if (bpt->pc() == breakpoint_address) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 } 998 }
999 999
1000 1000
1001 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 1001 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
1002 ASSERT(bpt->next() == NULL); 1002 ASSERT(bpt->next() == NULL);
1003 bpt->set_next(code_breakpoints_); 1003 bpt->set_next(code_breakpoints_);
1004 code_breakpoints_ = bpt; 1004 code_breakpoints_ = bpt;
1005 } 1005 }
1006 1006
1007 } // namespace dart 1007 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698