Index: src/snapshot/serialize.cc |
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc |
index b311f9dcda065c2c3b1f8dad3bfafe383e7f2a92..eaebd68e5d78970e888ac75867fa555f98137158 100644 |
--- a/src/snapshot/serialize.cc |
+++ b/src/snapshot/serialize.cc |
@@ -1729,7 +1729,8 @@ void Serializer::ObjectSerializer::SerializePrologue(AllocationSpace space, |
back_reference = serializer_->AllocateLargeObject(size); |
} else { |
bool needs_double_align = false; |
- if (object_->NeedsToEnsureDoubleAlignment()) { |
+ // TODO(bbudge) Generalize to other alignment constraints. |
Hannes Payer (out of office)
2015/05/21 09:53:31
TODO(bbudge): ...
bbudge
2015/05/21 10:02:08
Done.
|
+ if (object_->RequiredAlignment() == kDoubleAligned) { |
// Add wriggle room for double alignment padding. |
back_reference = serializer_->Allocate(space, size + kPointerSize); |
needs_double_align = true; |