Index: src/snapshot-common.cc |
diff --git a/src/snapshot-common.cc b/src/snapshot-common.cc |
index a8806f053fe13b2f796c9009eb05c48843217394..576269df9e442166fce92da22f54f6575ee1b842 100644 |
--- a/src/snapshot-common.cc |
+++ b/src/snapshot-common.cc |
@@ -45,7 +45,8 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer, |
OS::SNPrintF(name, "%s.size", file_name); |
FILE* fp = OS::FOpen(name.start(), "r"); |
CHECK_NE(NULL, fp); |
- int new_size, pointer_size, data_size, code_size, map_size, cell_size; |
+ int new_size, pointer_size, data_size, code_size, map_size, cell_size, |
+ property_cell_size; |
#ifdef _MSC_VER |
// Avoid warning about unsafe fscanf from MSVC. |
// Please note that this is only fine if %c and %s are not being used. |
@@ -57,6 +58,7 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer, |
CHECK_EQ(1, fscanf(fp, "code %d\n", &code_size)); |
CHECK_EQ(1, fscanf(fp, "map %d\n", &map_size)); |
CHECK_EQ(1, fscanf(fp, "cell %d\n", &cell_size)); |
+ CHECK_EQ(1, fscanf(fp, "property cell %d\n", &property_cell_size)); |
#ifdef _MSC_VER |
#undef fscanf |
#endif |
@@ -67,6 +69,8 @@ static void ReserveSpaceForSnapshot(Deserializer* deserializer, |
deserializer->set_reservation(CODE_SPACE, code_size); |
deserializer->set_reservation(MAP_SPACE, map_size); |
deserializer->set_reservation(CELL_SPACE, cell_size); |
+ deserializer->set_reservation(PROPERTY_CELL_SPACE, |
+ property_cell_size); |
name.Dispose(); |
} |
@@ -78,6 +82,8 @@ void Snapshot::ReserveSpaceForLinkedInSnapshot(Deserializer* deserializer) { |
deserializer->set_reservation(CODE_SPACE, code_space_used_); |
deserializer->set_reservation(MAP_SPACE, map_space_used_); |
deserializer->set_reservation(CELL_SPACE, cell_space_used_); |
+ deserializer->set_reservation(PROPERTY_CELL_SPACE, |
+ property_cell_space_used_); |
} |
@@ -124,6 +130,8 @@ Handle<Context> Snapshot::NewContextFromSnapshot() { |
deserializer.set_reservation(CODE_SPACE, context_code_space_used_); |
deserializer.set_reservation(MAP_SPACE, context_map_space_used_); |
deserializer.set_reservation(CELL_SPACE, context_cell_space_used_); |
+ deserializer.set_reservation(PROPERTY_CELL_SPACE, |
+ context_property_cell_space_used_); |
deserializer.DeserializePartial(&root); |
CHECK(root->IsContext()); |
return Handle<Context>(Context::cast(root)); |