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

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
Index: vm/object_store.h
===================================================================
--- vm/object_store.h (revision 4579)
+++ vm/object_store.h (working copy)
@@ -302,6 +302,20 @@
out_of_memory_ = value.raw();
}
+ RawArray* literal_tokens_canonical_list() const {
+ return literal_tokens_canonical_list_;
+ }
+ void set_literal_tokens_canonical_list(const Array& value) {
+ literal_tokens_canonical_list_ = value.raw();
+ }
+
+ RawArray* keyword_symbols() const { return keyword_symbols_; }
+ void set_keyword_symbols(const Array& value) {
+ keyword_symbols_ = value.raw();
+ }
+ RawObject* GetKeywordSymbol(int index);
+ void SetKeywordSymbol(int index, const String& symbol);
+
// Visit all object pointers.
void VisitObjectPointers(ObjectPointerVisitor* visitor);
@@ -366,7 +380,9 @@
RawContext* empty_context_;
RawInstance* stack_overflow_;
RawInstance* out_of_memory_;
- RawObject** to() { return reinterpret_cast<RawObject**>(&out_of_memory_); }
+ RawArray* literal_tokens_canonical_list_;
+ RawArray* keyword_symbols_;
+ RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
bool preallocate_objects_called_;

Powered by Google App Engine
This is Rietveld 408576698