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

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

Issue 14628009: - Fixed some old-style casts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/debugger.h ('k') | runtime/vm/heap_profiler.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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 void Debugger::SetExceptionPauseInfo(Dart_ExceptionPauseInfo pause_info) { 953 void Debugger::SetExceptionPauseInfo(Dart_ExceptionPauseInfo pause_info) {
954 ASSERT((pause_info == kNoPauseOnExceptions) || 954 ASSERT((pause_info == kNoPauseOnExceptions) ||
955 (pause_info == kPauseOnUnhandledExceptions) || 955 (pause_info == kPauseOnUnhandledExceptions) ||
956 (pause_info == kPauseOnAllExceptions)); 956 (pause_info == kPauseOnAllExceptions));
957 exc_pause_info_ = pause_info; 957 exc_pause_info_ = pause_info;
958 } 958 }
959 959
960 960
961 Dart_ExceptionPauseInfo Debugger::GetExceptionPauseInfo() { 961 Dart_ExceptionPauseInfo Debugger::GetExceptionPauseInfo() {
962 return (Dart_ExceptionPauseInfo)exc_pause_info_; 962 return exc_pause_info_;
963 } 963 }
964 964
965 965
966 bool Debugger::ShouldPauseOnException(DebuggerStackTrace* stack_trace, 966 bool Debugger::ShouldPauseOnException(DebuggerStackTrace* stack_trace,
967 const Instance& exc) { 967 const Instance& exc) {
968 if (exc_pause_info_ == kNoPauseOnExceptions) { 968 if (exc_pause_info_ == kNoPauseOnExceptions) {
969 return false; 969 return false;
970 } 970 }
971 if (exc_pause_info_ == kPauseOnAllExceptions) { 971 if (exc_pause_info_ == kPauseOnAllExceptions) {
972 return true; 972 return true;
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 } 1779 }
1780 1780
1781 1781
1782 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 1782 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
1783 ASSERT(bpt->next() == NULL); 1783 ASSERT(bpt->next() == NULL);
1784 bpt->set_next(code_breakpoints_); 1784 bpt->set_next(code_breakpoints_);
1785 code_breakpoints_ = bpt; 1785 code_breakpoints_ = bpt;
1786 } 1786 }
1787 1787
1788 } // namespace dart 1788 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.h ('k') | runtime/vm/heap_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698