| 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 class_name = &Symbols::NullThrownError(); | 664 class_name = &Symbols::NullThrownError(); |
| 665 break; | 665 break; |
| 666 case kIsolateSpawn: | 666 case kIsolateSpawn: |
| 667 library = Library::IsolateLibrary(); | 667 library = Library::IsolateLibrary(); |
| 668 class_name = &Symbols::IsolateSpawnException(); | 668 class_name = &Symbols::IsolateSpawnException(); |
| 669 break; | 669 break; |
| 670 case kIsolateUnhandledException: | 670 case kIsolateUnhandledException: |
| 671 library = Library::IsolateLibrary(); | 671 library = Library::IsolateLibrary(); |
| 672 class_name = &Symbols::IsolateUnhandledException(); | 672 class_name = &Symbols::IsolateUnhandledException(); |
| 673 break; | 673 break; |
| 674 case kFiftyThreeBitOverflowError: | 674 case kJavascriptIntegerOverflowError: |
| 675 library = Library::CoreLibrary(); | 675 library = Library::CoreLibrary(); |
| 676 class_name = &Symbols::FiftyThreeBitOverflowError(); | 676 class_name = &Symbols::JavascriptIntegerOverflowError(); |
| 677 break; | 677 break; |
| 678 case kAssertion: | 678 case kAssertion: |
| 679 library = Library::CoreLibrary(); | 679 library = Library::CoreLibrary(); |
| 680 class_name = &Symbols::AssertionError(); | 680 class_name = &Symbols::AssertionError(); |
| 681 break; | 681 break; |
| 682 case kCast: | 682 case kCast: |
| 683 library = Library::CoreLibrary(); | 683 library = Library::CoreLibrary(); |
| 684 class_name = &Symbols::CastError(); | 684 class_name = &Symbols::CastError(); |
| 685 break; | 685 break; |
| 686 case kType: | 686 case kType: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 705 break; | 705 break; |
| 706 } | 706 } |
| 707 | 707 |
| 708 return DartLibraryCalls::InstanceCreate(library, | 708 return DartLibraryCalls::InstanceCreate(library, |
| 709 *class_name, | 709 *class_name, |
| 710 *constructor_name, | 710 *constructor_name, |
| 711 arguments); | 711 arguments); |
| 712 } | 712 } |
| 713 | 713 |
| 714 } // namespace dart | 714 } // namespace dart |
| OLD | NEW |