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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 class_name = &Symbols::ArgumentError(); | 407 class_name = &Symbols::ArgumentError(); |
408 break; | 408 break; |
409 case kNoSuchMethod: | 409 case kNoSuchMethod: |
410 library = Library::CoreLibrary(); | 410 library = Library::CoreLibrary(); |
411 class_name = &Symbols::NoSuchMethodError(); | 411 class_name = &Symbols::NoSuchMethodError(); |
412 break; | 412 break; |
413 case kFormat: | 413 case kFormat: |
414 library = Library::CoreLibrary(); | 414 library = Library::CoreLibrary(); |
415 class_name = &Symbols::FormatException(); | 415 class_name = &Symbols::FormatException(); |
416 break; | 416 break; |
| 417 case kUnsupported: |
| 418 library = Library::CoreLibrary(); |
| 419 class_name = &Symbols::UnsupportedError(); |
| 420 break; |
417 case kStackOverflow: | 421 case kStackOverflow: |
418 library = Library::CoreLibrary(); | 422 library = Library::CoreLibrary(); |
419 class_name = &Symbols::StackOverflowError(); | 423 class_name = &Symbols::StackOverflowError(); |
420 break; | 424 break; |
421 case kOutOfMemory: | 425 case kOutOfMemory: |
422 library = Library::CoreLibrary(); | 426 library = Library::CoreLibrary(); |
423 class_name = &Symbols::OutOfMemoryError(); | 427 class_name = &Symbols::OutOfMemoryError(); |
424 break; | 428 break; |
425 case kInternalError: | 429 case kInternalError: |
426 library = Library::CoreLibrary(); | 430 library = Library::CoreLibrary(); |
(...skipping 14 matching lines...) Expand all Loading... |
441 case kIsolateUnhandledException: | 445 case kIsolateUnhandledException: |
442 library = Library::IsolateLibrary(); | 446 library = Library::IsolateLibrary(); |
443 class_name = &Symbols::IsolateUnhandledException(); | 447 class_name = &Symbols::IsolateUnhandledException(); |
444 break; | 448 break; |
445 } | 449 } |
446 | 450 |
447 return DartLibraryCalls::ExceptionCreate(library, *class_name, arguments); | 451 return DartLibraryCalls::ExceptionCreate(library, *class_name, arguments); |
448 } | 452 } |
449 | 453 |
450 } // namespace dart | 454 } // namespace dart |
OLD | NEW |