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

Unified Diff: vm/object_store.h

Issue 9462003: Changes to shrink the token stream representation from two words to one word. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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
« vm/object.h ('K') | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object_store.h
===================================================================
--- vm/object_store.h (revision 4719)
+++ vm/object_store.h (working copy)
@@ -310,6 +310,12 @@
out_of_memory_ = value.raw();
}
+ RawArray* keyword_symbols() const { return keyword_symbols_; }
+ void set_keyword_symbols(const Array& value) {
+ keyword_symbols_ = value.raw();
+ }
+ void InitKeywordTable();
+
// Visit all object pointers.
void VisitObjectPointers(ObjectPointerVisitor* visitor);
@@ -375,7 +381,8 @@
RawContext* empty_context_;
RawInstance* stack_overflow_;
RawInstance* out_of_memory_;
- RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); }
+ RawArray* keyword_symbols_;
+ RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
bool preallocate_objects_called_;
« vm/object.h ('K') | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698