OLD | NEW |
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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 class_name = &Symbols::OutOfMemoryError(); | 459 class_name = &Symbols::OutOfMemoryError(); |
460 break; | 460 break; |
461 case kInternalError: | 461 case kInternalError: |
462 library = Library::CoreLibrary(); | 462 library = Library::CoreLibrary(); |
463 class_name = &Symbols::InternalError(); | 463 class_name = &Symbols::InternalError(); |
464 break; | 464 break; |
465 case kNullThrown: | 465 case kNullThrown: |
466 library = Library::CoreLibrary(); | 466 library = Library::CoreLibrary(); |
467 class_name = &Symbols::NullThrownError(); | 467 class_name = &Symbols::NullThrownError(); |
468 break; | 468 break; |
469 case kIllegalJSRegExp: | |
470 library = Library::CoreLibrary(); | |
471 class_name = &Symbols::IllegalJSRegExpException(); | |
472 break; | |
473 case kIsolateSpawn: | 469 case kIsolateSpawn: |
474 library = Library::IsolateLibrary(); | 470 library = Library::IsolateLibrary(); |
475 class_name = &Symbols::IsolateSpawnException(); | 471 class_name = &Symbols::IsolateSpawnException(); |
476 break; | 472 break; |
477 case kIsolateUnhandledException: | 473 case kIsolateUnhandledException: |
478 library = Library::IsolateLibrary(); | 474 library = Library::IsolateLibrary(); |
479 class_name = &Symbols::IsolateUnhandledException(); | 475 class_name = &Symbols::IsolateUnhandledException(); |
480 break; | 476 break; |
481 } | 477 } |
482 | 478 |
483 return DartLibraryCalls::ExceptionCreate(library, | 479 return DartLibraryCalls::ExceptionCreate(library, |
484 *class_name, | 480 *class_name, |
485 *constructor_name, | 481 *constructor_name, |
486 arguments); | 482 arguments); |
487 } | 483 } |
488 | 484 |
489 } // namespace dart | 485 } // namespace dart |
OLD | NEW |