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

Unified Diff: runtime/vm/object_store.cc

Issue 781203005: Allow Symbols in switch and maps (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.cc
===================================================================
--- runtime/vm/object_store.cc (revision 42183)
+++ runtime/vm/object_store.cc (working copy)
@@ -38,6 +38,7 @@
future_class_(Class::null()),
completer_class_(Class::null()),
stream_iterator_class_(Class::null()),
+ symbol_class_(Class::null()),
one_byte_string_class_(Class::null()),
two_byte_string_class_(Class::null()),
external_one_byte_string_class_(Class::null()),
@@ -170,7 +171,7 @@
}
-void ObjectStore::InitAsyncObjects() {
+void ObjectStore::InitKnownObjects() {
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL && isolate->object_store() == this);
@@ -186,6 +187,10 @@
cls = async_lib.LookupClass(Symbols::StreamIterator());
ASSERT(!cls.IsNull());
set_stream_iterator_class(cls);
+
+ const Library& internal_lib = Library::Handle(internal_library());
+ cls = internal_lib.LookupClass(Symbols::Symbol());
+ set_symbol_class(cls);
regis 2014/12/09 21:58:55 There are many other "known objects" that are look
hausner 2014/12/10 00:23:27 The only reason I'm aware of to do it here is that
}
} // namespace dart
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698