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

Unified Diff: runtime/vm/object_store.cc

Issue 2044753002: Make compile-time errors catchable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.cc
diff --git a/runtime/vm/object_store.cc b/runtime/vm/object_store.cc
index e0bf805809b29ac8f6d8ef9533bf79694eb76301..8812a8ee50c3e8336d36ea31ca334bd9e0a644e7 100644
--- a/runtime/vm/object_store.cc
+++ b/runtime/vm/object_store.cc
@@ -35,6 +35,7 @@ ObjectStore::ObjectStore()
int32x4_type_(Type::null()),
float64x2_type_(Type::null()),
string_type_(Type::null()),
+ compiletime_error_class_(Class::null()),
future_class_(Class::null()),
completer_class_(Class::null()),
stream_iterator_class_(Class::null()),
@@ -243,6 +244,11 @@ void ObjectStore::InitKnownObjects() {
cls = internal_lib.LookupClass(Symbols::Symbol());
set_symbol_class(cls);
+ const Library& core_lib = Library::Handle(core_library());
+ cls = core_lib.LookupClassAllowPrivate(Symbols::_CompileTimeError());
+ ASSERT(!cls.IsNull());
+ set_compiletime_error_class(cls);
+
// Cache the core private functions used for fast instance of checks.
simple_instance_of_function_ =
PrivateObjectLookup(Symbols::_simpleInstanceOf());
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/precompiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698