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: |