| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |