From: hpayer Date: Wed, 6 May 2015 15:47:27 +0000 (-0700) Subject: Only double align in scavenger on non-64 bit platforms. X-Git-Tag: upstream/4.7.83~2773 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba6d917457410ac217ff4c758edc651e2c04ef26;p=platform%2Fupstream%2Fv8.git Only double align in scavenger on non-64 bit platforms. BUG=chromium:436911 LOG=n Review URL: https://codereview.chromium.org/1128923002 Cr-Commit-Position: refs/heads/master@{#28267} --- diff --git a/src/heap/heap.cc b/src/heap/heap.cc index 22029d6..e7f7283 100644 --- a/src/heap/heap.cc +++ b/src/heap/heap.cc @@ -2105,11 +2105,15 @@ class ScavengingVisitor : public StaticVisitorBase { DCHECK(heap->AllowedToBeMigrated(object, NEW_SPACE)); AllocationResult allocation; +#ifndef V8_HOST_ARCH_64_BIT if (alignment == kDoubleAlignment) { allocation = heap->new_space()->AllocateRawDoubleAligned(object_size); } else { allocation = heap->new_space()->AllocateRaw(object_size); } +#else + allocation = heap->new_space()->AllocateRaw(object_size); +#endif HeapObject* target = NULL; // Initialization to please compiler. if (allocation.To(&target)) { @@ -2137,11 +2141,15 @@ class ScavengingVisitor : public StaticVisitorBase { Heap* heap = map->GetHeap(); AllocationResult allocation; +#ifndef V8_HOST_ARCH_64_BIT if (alignment == kDoubleAlignment) { allocation = heap->old_space()->AllocateRawDoubleAligned(object_size); } else { allocation = heap->old_space()->AllocateRaw(object_size); } +#else + allocation = heap->old_space()->AllocateRaw(object_size); +#endif HeapObject* target = NULL; // Initialization to please compiler. if (allocation.To(&target)) {