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

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

Issue 11413101: Added support for isolate unhandled exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/exceptions.h" 5 #include "vm/exceptions.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 class_name = Symbols::New("NullThrownError"); 432 class_name = Symbols::New("NullThrownError");
433 break; 433 break;
434 case kIllegalJSRegExp: 434 case kIllegalJSRegExp:
435 library = Library::CoreLibrary(); 435 library = Library::CoreLibrary();
436 class_name = Symbols::New("IllegalJSRegExpException"); 436 class_name = Symbols::New("IllegalJSRegExpException");
437 break; 437 break;
438 case kIsolateSpawn: 438 case kIsolateSpawn:
439 library = Library::IsolateLibrary(); 439 library = Library::IsolateLibrary();
440 class_name = Symbols::New("IsolateSpawnException"); 440 class_name = Symbols::New("IsolateSpawnException");
441 break; 441 break;
442 case kIsolateUnhandledException:
443 library = Library::IsolateLibrary();
444 class_name = Symbols::New("IsolateUnhandledException");
445 break;
442 } 446 }
443 447
444 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); 448 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments);
445 } 449 }
446 450
447 } // namespace dart 451 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/isolate.h » ('j') | runtime/vm/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698