| Index: src/mksnapshot.cc
|
| ===================================================================
|
| --- src/mksnapshot.cc (revision 12497)
|
| +++ src/mksnapshot.cc (working copy)
|
| @@ -166,30 +166,37 @@
|
| }
|
|
|
| void WriteSpaceUsed(
|
| + const char* prefix,
|
| int new_space_used,
|
| int pointer_space_used,
|
| int data_space_used,
|
| int code_space_used,
|
| int map_space_used,
|
| - int cell_space_used,
|
| - int large_space_used) {
|
| - fprintf(fp_, "const int Snapshot::new_space_used_ = %d;\n", new_space_used);
|
| + int cell_space_used) {
|
| fprintf(fp_,
|
| - "const int Snapshot::pointer_space_used_ = %d;\n",
|
| + "const int Snapshot::%snew_space_used_ = %d;\n",
|
| + prefix,
|
| + new_space_used);
|
| + fprintf(fp_,
|
| + "const int Snapshot::%spointer_space_used_ = %d;\n",
|
| + prefix,
|
| pointer_space_used);
|
| fprintf(fp_,
|
| - "const int Snapshot::data_space_used_ = %d;\n",
|
| + "const int Snapshot::%sdata_space_used_ = %d;\n",
|
| + prefix,
|
| data_space_used);
|
| fprintf(fp_,
|
| - "const int Snapshot::code_space_used_ = %d;\n",
|
| + "const int Snapshot::%scode_space_used_ = %d;\n",
|
| + prefix,
|
| code_space_used);
|
| - fprintf(fp_, "const int Snapshot::map_space_used_ = %d;\n", map_space_used);
|
| fprintf(fp_,
|
| - "const int Snapshot::cell_space_used_ = %d;\n",
|
| + "const int Snapshot::%smap_space_used_ = %d;\n",
|
| + prefix,
|
| + map_space_used);
|
| + fprintf(fp_,
|
| + "const int Snapshot::%scell_space_used_ = %d;\n",
|
| + prefix,
|
| cell_space_used);
|
| - fprintf(fp_,
|
| - "const int Snapshot::large_space_used_ = %d;\n",
|
| - large_space_used);
|
| }
|
|
|
| void WritePartialSnapshot() {
|
| @@ -400,12 +407,20 @@
|
| sink.WritePartialSnapshot();
|
|
|
| sink.WriteSpaceUsed(
|
| + "context_",
|
| partial_ser.CurrentAllocationAddress(i::NEW_SPACE),
|
| partial_ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE),
|
| 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::LO_SPACE));
|
| + partial_ser.CurrentAllocationAddress(i::CELL_SPACE));
|
| + sink.WriteSpaceUsed(
|
| + "",
|
| + ser.CurrentAllocationAddress(i::NEW_SPACE),
|
| + ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE),
|
| + ser.CurrentAllocationAddress(i::OLD_DATA_SPACE),
|
| + ser.CurrentAllocationAddress(i::CODE_SPACE),
|
| + ser.CurrentAllocationAddress(i::MAP_SPACE),
|
| + ser.CurrentAllocationAddress(i::CELL_SPACE));
|
| return 0;
|
| }
|
|
|