Chromium Code Reviews| 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 685 case kFallThrough: | 685 case kFallThrough: |
| 686 library = Library::CoreLibrary(); | 686 library = Library::CoreLibrary(); |
| 687 class_name = &Symbols::FallThroughError(); | 687 class_name = &Symbols::FallThroughError(); |
| 688 constructor_name = &Symbols::DotCreate(); | 688 constructor_name = &Symbols::DotCreate(); |
| 689 break; | 689 break; |
| 690 case kAbstractClassInstantiation: | 690 case kAbstractClassInstantiation: |
| 691 library = Library::CoreLibrary(); | 691 library = Library::CoreLibrary(); |
| 692 class_name = &Symbols::AbstractClassInstantiationError(); | 692 class_name = &Symbols::AbstractClassInstantiationError(); |
| 693 constructor_name = &Symbols::DotCreate(); | 693 constructor_name = &Symbols::DotCreate(); |
| 694 break; | 694 break; |
| 695 case kMirroredUncaughtExceptionError: | |
| 696 library = Library::MirrorsLibrary(); | |
| 697 class_name = &Symbols::MirroredUncaughtExceptionError(); | |
|
siva
2013/10/19 00:25:14
Need to also remove it from Symbols.h
rmacnak
2013/10/21 18:26:09
Done.
| |
| 698 break; | |
| 699 case kMirroredCompilationError: | 695 case kMirroredCompilationError: |
| 700 library = Library::MirrorsLibrary(); | 696 library = Library::MirrorsLibrary(); |
| 701 class_name = &Symbols::MirroredCompilationError(); | 697 class_name = &Symbols::MirroredCompilationError(); |
| 702 break; | 698 break; |
| 703 } | 699 } |
| 704 | 700 |
| 705 return DartLibraryCalls::InstanceCreate(library, | 701 return DartLibraryCalls::InstanceCreate(library, |
| 706 *class_name, | 702 *class_name, |
| 707 *constructor_name, | 703 *constructor_name, |
| 708 arguments); | 704 arguments); |
| 709 } | 705 } |
| 710 | 706 |
| 711 } // namespace dart | 707 } // namespace dart |
| OLD | NEW |