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

Unified Diff: vm/raw_object.h

Issue 10914050: Use external byte arrays for token stream, this moves the token stream out of the isolate heap. For… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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/object.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 11973)
+++ vm/raw_object.h (working copy)
@@ -659,13 +659,11 @@
return reinterpret_cast<RawObject**>(&ptr()->private_key_);
}
RawString* private_key_; // Key used for private identifiers.
- RawSmi* length_; // Length of token stream.
RawArray* token_objects_;
+ RawExternalUint8Array* stream_;
RawObject** to() {
- return reinterpret_cast<RawObject**>(&ptr()->token_objects_);
+ return reinterpret_cast<RawObject**>(&ptr()->stream_);
}
- // Variable length data follows here.
- uint8_t data_[0];
friend class SnapshotReader;
};
@@ -1336,6 +1334,9 @@
RAW_HEAP_OBJECT_IMPLEMENTATION(ExternalUint8Array);
ExternalByteArrayData<uint8_t>* external_data_;
+
+ friend class TokenStream;
+ friend class RawTokenStream;
};
« no previous file with comments | « vm/object.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698