| Index: src/snapshot/serialize.cc
|
| diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
|
| index dbe92a6accb129520b22838e09ea8a7f3ee485a1..55685be2785713ef97345842aa3b765e04869363 100644
|
| --- a/src/snapshot/serialize.cc
|
| +++ b/src/snapshot/serialize.cc
|
| @@ -746,21 +746,10 @@ void Deserializer::ReadObject(int space_number, Object** write_back) {
|
| HeapObject* obj;
|
| int next_int = source_.GetInt();
|
|
|
| - bool double_align = false;
|
| -#ifndef V8_HOST_ARCH_64_BIT
|
| - double_align = next_int == kDoubleAlignmentSentinel;
|
| - if (double_align) next_int = source_.GetInt();
|
| -#endif
|
| -
|
| DCHECK_NE(kDoubleAlignmentSentinel, next_int);
|
| int size = next_int << kObjectAlignmentBits;
|
| - int reserved_size = size + (double_align ? kPointerSize : 0);
|
| - address = Allocate(space_number, reserved_size);
|
| + address = Allocate(space_number, size);
|
| obj = HeapObject::FromAddress(address);
|
| - if (double_align) {
|
| - obj = isolate_->heap()->DoubleAlignForDeserialization(obj, reserved_size);
|
| - address = obj->address();
|
| - }
|
|
|
| isolate_->heap()->OnAllocationEvent(obj, size);
|
| Object** current = reinterpret_cast<Object**>(address);
|
| @@ -1671,17 +1660,8 @@ void Serializer::ObjectSerializer::SerializePrologue(AllocationSpace space,
|
| }
|
| back_reference = serializer_->AllocateLargeObject(size);
|
| } else {
|
| - bool needs_double_align = false;
|
| - if (object_->NeedsToEnsureDoubleAlignment()) {
|
| - // Add wriggle room for double alignment padding.
|
| - back_reference = serializer_->Allocate(space, size + kPointerSize);
|
| - needs_double_align = true;
|
| - } else {
|
| - back_reference = serializer_->Allocate(space, size);
|
| - }
|
| + back_reference = serializer_->Allocate(space, size);
|
| sink_->Put(kNewObject + reference_representation_ + space, "NewObject");
|
| - if (needs_double_align)
|
| - sink_->PutInt(kDoubleAlignmentSentinel, "DoubleAlignSentinel");
|
| int encoded_size = size >> kObjectAlignmentBits;
|
| DCHECK_NE(kDoubleAlignmentSentinel, encoded_size);
|
| sink_->PutInt(encoded_size, "ObjectSizeInWords");
|
|
|