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

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

Issue 10896007: Expose remaining 'errors' in an unified dart:core. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move errors to errors.dart in dart2js. Created 8 years, 3 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/lib/error.dart ('k') | runtime/vm/exceptions.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 "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
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
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
OLDNEW
« no previous file with comments | « runtime/lib/error.dart ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698