| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 class_name = &Symbols::NullThrownError(); | 597 class_name = &Symbols::NullThrownError(); |
| 598 break; | 598 break; |
| 599 case kIsolateSpawn: | 599 case kIsolateSpawn: |
| 600 library = Library::IsolateLibrary(); | 600 library = Library::IsolateLibrary(); |
| 601 class_name = &Symbols::IsolateSpawnException(); | 601 class_name = &Symbols::IsolateSpawnException(); |
| 602 break; | 602 break; |
| 603 case kIsolateUnhandledException: | 603 case kIsolateUnhandledException: |
| 604 library = Library::IsolateLibrary(); | 604 library = Library::IsolateLibrary(); |
| 605 class_name = &Symbols::IsolateUnhandledException(); | 605 class_name = &Symbols::IsolateUnhandledException(); |
| 606 break; | 606 break; |
| 607 case kFiftyThreeBitOverflowError: |
| 608 library = Library::CoreLibrary(); |
| 609 class_name = &Symbols::FiftyThreeBitOverflowError(); |
| 610 break; |
| 607 } | 611 } |
| 608 | 612 |
| 609 return DartLibraryCalls::ExceptionCreate(library, | 613 return DartLibraryCalls::ExceptionCreate(library, |
| 610 *class_name, | 614 *class_name, |
| 611 *constructor_name, | 615 *constructor_name, |
| 612 arguments); | 616 arguments); |
| 613 } | 617 } |
| 614 | 618 |
| 615 } // namespace dart | 619 } // namespace dart |
| OLD | NEW |