Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index be9938b4a1b5eb9ef06f597728a39a0f53dc5fbf..b844cb579433bc5788e6dc051e3156e4168ba703 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1944,7 +1944,7 @@ int MarkCompactCollector::DiscoverAndEvacuateBlackObjectsOnPage( |
AllocationResult allocation; |
#ifndef V8_HOST_ARCH_64_BIT |
if (object->NeedsToEnsureDoubleAlignment()) { |
- allocation = new_space->AllocateRawDoubleAligned(size); |
+ allocation = new_space->AllocateRawAligned(size, kDoubleAligned); |
} else { |
allocation = new_space->AllocateRaw(size); |
} |
@@ -1960,7 +1960,7 @@ int MarkCompactCollector::DiscoverAndEvacuateBlackObjectsOnPage( |
} |
#ifndef V8_HOST_ARCH_64_BIT |
if (object->NeedsToEnsureDoubleAlignment()) { |
- allocation = new_space->AllocateRawDoubleAligned(size); |
+ allocation = new_space->AllocateRawAligned(size, kDoubleAligned); |
} else { |
allocation = new_space->AllocateRaw(size); |
} |
@@ -3122,7 +3122,7 @@ bool MarkCompactCollector::TryPromoteObject(HeapObject* object, |
AllocationResult allocation; |
#ifndef V8_HOST_ARCH_64_BIT |
if (object->NeedsToEnsureDoubleAlignment()) { |
- allocation = old_space->AllocateRawDoubleAligned(object_size); |
+ allocation = old_space->AllocateRawAligned(object_size, kDoubleAligned); |
} else { |
allocation = old_space->AllocateRaw(object_size); |
} |