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

Unified Diff: vm/raw_object.h

Issue 10697055: Represent tokens as a compressed stream instead of an array. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « vm/parser.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.h
===================================================================
--- vm/raw_object.h (revision 9536)
+++ vm/raw_object.h (working copy)
@@ -626,13 +626,13 @@
return reinterpret_cast<RawObject**>(&ptr()->private_key_);
}
RawString* private_key_; // Key used for private identifiers.
- RawSmi* length_; // Number of tokens.
-
+ RawSmi* length_; // Length of token stream.
+ RawArray* token_objects_;
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->token_objects_);
+ }
// Variable length data follows here.
- RawObject* data_[0];
- RawObject** to(intptr_t length) {
- return reinterpret_cast<RawObject**>(&ptr()->data_[length - 1]);
- }
+ uint8_t data_[0];
friend class SnapshotReader;
};
« no previous file with comments | « vm/parser.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698