| Index: src/mksnapshot.cc
|
| diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
|
| index 978ea217bd9e4af37d25bebc8f4d031f70c3a0d4..3ac475be2e466c01b92375bdb87c527d0416881e 100644
|
| --- a/src/mksnapshot.cc
|
| +++ b/src/mksnapshot.cc
|
| @@ -172,7 +172,8 @@ class CppByteSink : public PartialSnapshotSink {
|
| int data_space_used,
|
| int code_space_used,
|
| int map_space_used,
|
| - int cell_space_used) {
|
| + int cell_space_used,
|
| + int property_cell_space_used) {
|
| fprintf(fp_,
|
| "const int Snapshot::%snew_space_used_ = %d;\n",
|
| prefix,
|
| @@ -197,6 +198,10 @@ class CppByteSink : public PartialSnapshotSink {
|
| "const int Snapshot::%scell_space_used_ = %d;\n",
|
| prefix,
|
| cell_space_used);
|
| + fprintf(fp_,
|
| + "const int Snapshot::%sproperty_cell_space_used_ = %d;\n",
|
| + prefix,
|
| + property_cell_space_used);
|
| }
|
|
|
| void WritePartialSnapshot() {
|
| @@ -387,7 +392,7 @@ int main(int argc, char** argv) {
|
| // If we don't do this then we end up with a stray root pointing at the
|
| // context even after we have disposed of the context.
|
| HEAP->CollectAllGarbage(i::Heap::kNoGCFlags, "mksnapshot");
|
| - i::Object* raw_context = *(v8::Utils::OpenHandle(*context));
|
| + i::Object* raw_context = *v8::Utils::OpenPersistent(context);
|
| context.Dispose(isolate);
|
| CppByteSink sink(argv[1]);
|
| // This results in a somewhat smaller snapshot, probably because it gets rid
|
| @@ -417,7 +422,8 @@ int main(int argc, char** argv) {
|
| partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE),
|
| partial_ser.CurrentAllocationAddress(i::CODE_SPACE),
|
| partial_ser.CurrentAllocationAddress(i::MAP_SPACE),
|
| - partial_ser.CurrentAllocationAddress(i::CELL_SPACE));
|
| + partial_ser.CurrentAllocationAddress(i::CELL_SPACE),
|
| + partial_ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE));
|
| sink.WriteSpaceUsed(
|
| "",
|
| ser.CurrentAllocationAddress(i::NEW_SPACE),
|
| @@ -425,6 +431,7 @@ int main(int argc, char** argv) {
|
| ser.CurrentAllocationAddress(i::OLD_DATA_SPACE),
|
| ser.CurrentAllocationAddress(i::CODE_SPACE),
|
| ser.CurrentAllocationAddress(i::MAP_SPACE),
|
| - ser.CurrentAllocationAddress(i::CELL_SPACE));
|
| + ser.CurrentAllocationAddress(i::CELL_SPACE),
|
| + ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE));
|
| return 0;
|
| }
|
|
|