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

Unified Diff: src/serialize.h

Issue 932823002: Limit size of first page based on serialized data. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove printf debugging Created 5 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
« no previous file with comments | « src/heap/spaces.cc ('k') | src/serialize.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index dfc9de210060b908f3556ce7578b86f58eb0ae12..b76abbcbac7e3895b2a8a8b3fcee9aa32ab2f64a 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -734,6 +734,8 @@ class Serializer : public SerializerDeserializer {
return max_chunk_size_[space];
}
+ SnapshotByteSink* sink() const { return sink_; }
+
Isolate* isolate_;
SnapshotByteSink* sink_;
@@ -742,8 +744,9 @@ class Serializer : public SerializerDeserializer {
BackReferenceMap back_reference_map_;
RootIndexMap root_index_map_;
- friend class ObjectSerializer;
friend class Deserializer;
+ friend class ObjectSerializer;
+ friend class SnapshotData;
private:
CodeAddressMap* code_address_map_;
@@ -897,7 +900,7 @@ class CodeSerializer : public Serializer {
class SnapshotData : public SerializedData {
public:
// Used when producing.
- SnapshotData(const SnapshotByteSink& sink, const Serializer& ser);
+ explicit SnapshotData(const Serializer& ser);
// Used when consuming.
explicit SnapshotData(const Vector<const byte> snapshot)
« no previous file with comments | « src/heap/spaces.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698