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

Unified Diff: src/snapshot/serializer-common.h

Issue 2229583003: [serializer] reserve maps one by one to avoid fragmentation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix build Created 4 years, 4 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/snapshot/serializer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/serializer-common.h
diff --git a/src/snapshot/serializer-common.h b/src/snapshot/serializer-common.h
index bdd2b51e7ee1c9df2fde752f4bca891ad8c7bb27..74b02180739e4138f086546d04f8df7515bff114 100644
--- a/src/snapshot/serializer-common.h
+++ b/src/snapshot/serializer-common.h
@@ -80,7 +80,9 @@ class SerializerDeserializer : public ObjectVisitor {
static void Iterate(Isolate* isolate, ObjectVisitor* visitor);
// No reservation for large object space necessary.
- static const int kNumberOfPreallocatedSpaces = LAST_PAGED_SPACE + 1;
+ // We also handle map space differenly.
+ STATIC_ASSERT(MAP_SPACE == CODE_SPACE + 1);
+ static const int kNumberOfPreallocatedSpaces = CODE_SPACE + 1;
static const int kNumberOfSpaces = LAST_SPACE + 1;
protected:
« no previous file with comments | « src/snapshot/serializer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698