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 "platform/address_sanitizer.h" | 7 #include "platform/address_sanitizer.h" |
8 | 8 |
9 #include "lib/stacktrace.h" | 9 #include "lib/stacktrace.h" |
10 | 10 |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 case kCyclicInitializationError: | 966 case kCyclicInitializationError: |
967 library = Library::CoreLibrary(); | 967 library = Library::CoreLibrary(); |
968 class_name = &Symbols::CyclicInitializationError(); | 968 class_name = &Symbols::CyclicInitializationError(); |
969 break; | 969 break; |
970 case kCompileTimeError: | 970 case kCompileTimeError: |
971 library = Library::CoreLibrary(); | 971 library = Library::CoreLibrary(); |
972 class_name = &Symbols::_CompileTimeError(); | 972 class_name = &Symbols::_CompileTimeError(); |
973 break; | 973 break; |
974 } | 974 } |
975 | 975 |
| 976 Thread* thread = Thread::Current(); |
| 977 NoReloadScope no_reload_scope(thread->isolate(), thread); |
976 return DartLibraryCalls::InstanceCreate(library, *class_name, | 978 return DartLibraryCalls::InstanceCreate(library, *class_name, |
977 *constructor_name, arguments); | 979 *constructor_name, arguments); |
978 } | 980 } |
979 | 981 |
980 | 982 |
981 } // namespace dart | 983 } // namespace dart |
OLD | NEW |