Index: src/serialize.cc |
diff --git a/src/serialize.cc b/src/serialize.cc |
index 5d497a1ff811532213098f86b2236ef256799af5..a2c4982b7972b92500e449f75e3622334fa3b266 100644 |
--- a/src/serialize.cc |
+++ b/src/serialize.cc |
@@ -697,6 +697,7 @@ void Deserializer::ReadObject(int space_number, |
*write_back = HeapObject::FromAddress(address); |
Object** current = reinterpret_cast<Object**>(address); |
Object** limit = current + (size >> kPointerSizeLog2); |
+ LOG(SnapshotPositionEvent(address, source_->position())); |
Erik Corry
2010/01/18 15:47:51
Putting this in an if (FLAG_log_snapshot_positions
|
ReadChunk(current, limit, space_number, address); |
} |
@@ -1089,6 +1090,8 @@ void Serializer::ObjectSerializer::Serialize() { |
} |
sink_->PutInt(size >> kObjectAlignmentBits, "Size in words"); |
+ LOG(SnapshotPositionEvent(object_->address(), sink_->Position())); |
+ |
// Mark this object as already serialized. |
bool start_new_page; |
SerializationAddressMapper::Map( |