Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: runtime/vm/exceptions.cc

Issue 2825043002: VM: Prohibit reload when throwing or processing language errors. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698