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 "platform/address_sanitizer.h" | 9 #include "platform/address_sanitizer.h" |
10 | 10 |
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 type ^= handled_types.At(k); | 837 type ^= handled_types.At(k); |
838 ASSERT(!type.IsNull()); | 838 ASSERT(!type.IsNull()); |
839 // Uninstantiated types are not added to ExceptionHandlers data. | 839 // Uninstantiated types are not added to ExceptionHandlers data. |
840 ASSERT(type.IsInstantiated()); | 840 ASSERT(type.IsInstantiated()); |
841 if (type.IsMalformed()) { | 841 if (type.IsMalformed()) { |
842 continue; | 842 continue; |
843 } | 843 } |
844 if (type.IsDynamicType()) { | 844 if (type.IsDynamicType()) { |
845 return true; | 845 return true; |
846 } | 846 } |
847 if (exc_obj.IsInstanceOf(type, Object::null_type_arguments(), NULL)) { | 847 if (exc_obj.IsInstanceOf(type, Object::null_type_arguments(), |
| 848 Object::null_type_arguments(), NULL)) { |
848 return true; | 849 return true; |
849 } | 850 } |
850 } | 851 } |
851 } | 852 } |
852 try_index = handlers.OuterTryIndex(try_index); | 853 try_index = handlers.OuterTryIndex(try_index); |
853 } | 854 } |
854 return false; | 855 return false; |
855 } | 856 } |
856 | 857 |
857 | 858 |
(...skipping 3495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4353 | 4354 |
4354 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 4355 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
4355 ASSERT(bpt->next() == NULL); | 4356 ASSERT(bpt->next() == NULL); |
4356 bpt->set_next(code_breakpoints_); | 4357 bpt->set_next(code_breakpoints_); |
4357 code_breakpoints_ = bpt; | 4358 code_breakpoints_ = bpt; |
4358 } | 4359 } |
4359 | 4360 |
4360 #endif // !PRODUCT | 4361 #endif // !PRODUCT |
4361 | 4362 |
4362 } // namespace dart | 4363 } // namespace dart |
OLD | NEW |