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

Unified Diff: runtime/vm/object_store.h

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
Index: runtime/vm/object_store.h
===================================================================
--- runtime/vm/object_store.h (revision 42183)
+++ runtime/vm/object_store.h (working copy)
@@ -129,6 +129,11 @@
stream_iterator_class_ = value.raw();
}
+ RawClass* symbol_class() { return symbol_class_; }
+ void set_symbol_class(const Class& value) {
+ symbol_class_ = value.raw();
+ }
+
RawClass* one_byte_string_class() const { return one_byte_string_class_; }
void set_one_byte_string_class(const Class& value) {
one_byte_string_class_ = value.raw();
@@ -422,7 +427,7 @@
// information is stored in sticky_error().
bool PreallocateObjects();
- void InitAsyncObjects();
+ void InitKnownObjects();
static void Init(Isolate* isolate);
@@ -453,6 +458,7 @@
RawClass* future_class_;
RawClass* completer_class_;
RawClass* stream_iterator_class_;
+ RawClass* symbol_class_;
RawClass* one_byte_string_class_;
RawClass* two_byte_string_class_;
RawClass* external_one_byte_string_class_;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | runtime/vm/object_store.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698