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

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

Issue 11558034: Second version of support for specifying an unhandled exception callback (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/debugger.h" 9 #include "vm/debugger.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 class_name = Symbols::New("NullThrownError"); 433 class_name = Symbols::New("NullThrownError");
434 break; 434 break;
435 case kIllegalJSRegExp: 435 case kIllegalJSRegExp:
436 library = Library::CoreLibrary(); 436 library = Library::CoreLibrary();
437 class_name = Symbols::New("IllegalJSRegExpException"); 437 class_name = Symbols::New("IllegalJSRegExpException");
438 break; 438 break;
439 case kIsolateSpawn: 439 case kIsolateSpawn:
440 library = Library::IsolateLibrary(); 440 library = Library::IsolateLibrary();
441 class_name = Symbols::New("IsolateSpawnException"); 441 class_name = Symbols::New("IsolateSpawnException");
442 break; 442 break;
443 case kIsolateUnhandledException:
444 library = Library::IsolateLibrary();
445 class_name = Symbols::New("IsolateUnhandledException");
446 break;
443 } 447 }
444 448
445 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); 449 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments);
446 } 450 }
447 451
448 } // namespace dart 452 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698