| 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 "vm/code_generator.h" | 7 #include "vm/code_generator.h" |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 return false; | 774 return false; |
| 775 } | 775 } |
| 776 if ((exc_pause_info_ & kPauseOnAllExceptions) != 0) { | 776 if ((exc_pause_info_ & kPauseOnAllExceptions) != 0) { |
| 777 return true; | 777 return true; |
| 778 } | 778 } |
| 779 // Assume TypeError and AssertionError exceptions are unhandled. | 779 // Assume TypeError and AssertionError exceptions are unhandled. |
| 780 const Class& exc_class = Class::Handle(exc.clazz()); | 780 const Class& exc_class = Class::Handle(exc.clazz()); |
| 781 const String& class_name = String::Handle(exc_class.Name()); | 781 const String& class_name = String::Handle(exc_class.Name()); |
| 782 // TODO(hausner): Note the poor man's type test. This code will go | 782 // TODO(hausner): Note the poor man's type test. This code will go |
| 783 // away when we have a way to determine whether an exception is unhandled. | 783 // away when we have a way to determine whether an exception is unhandled. |
| 784 if (class_name.Equals("TypeError")) { | 784 if (class_name.Equals("TypeErrorImplementation")) { |
| 785 return true; | 785 return true; |
| 786 } | 786 } |
| 787 if (class_name.Equals("AssertionErrorImplementation")) { | 787 if (class_name.Equals("AssertionErrorImplementation")) { |
| 788 return true; | 788 return true; |
| 789 } | 789 } |
| 790 return false; | 790 return false; |
| 791 } | 791 } |
| 792 | 792 |
| 793 | 793 |
| 794 void Debugger::SignalExceptionThrown(const Object& exc) { | 794 void Debugger::SignalExceptionThrown(const Object& exc) { |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 } | 1565 } |
| 1566 | 1566 |
| 1567 | 1567 |
| 1568 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1568 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 1569 ASSERT(bpt->next() == NULL); | 1569 ASSERT(bpt->next() == NULL); |
| 1570 bpt->set_next(code_breakpoints_); | 1570 bpt->set_next(code_breakpoints_); |
| 1571 code_breakpoints_ = bpt; | 1571 code_breakpoints_ = bpt; |
| 1572 } | 1572 } |
| 1573 | 1573 |
| 1574 } // namespace dart | 1574 } // namespace dart |
| OLD | NEW |