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

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: wip 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
Index: runtime/vm/object_store.cc
diff --git a/runtime/vm/object_store.cc b/runtime/vm/object_store.cc
index e0bf805809b29ac8f6d8ef9533bf79694eb76301..fe22d30635e8f549c3c99a499f5fe9be8131b1b3 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()),
+ syntax_error_class_(Class::null()),
future_class_(Class::null()),
completer_class_(Class::null()),
stream_iterator_class_(Class::null()),
@@ -243,6 +244,10 @@ void ObjectStore::InitKnownObjects() {
cls = internal_lib.LookupClass(Symbols::Symbol());
set_symbol_class(cls);
+ const Library& core_lib = Library::Handle(core_library());
+ cls = core_lib.LookupClass(Symbols::SyntaxError());
+ set_syntax_error_class(cls);
+
// Cache the core private functions used for fast instance of checks.
simple_instance_of_function_ =
PrivateObjectLookup(Symbols::_simpleInstanceOf());

Powered by Google App Engine
This is Rietveld 408576698