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}
This commit is contained in:
parent
382435480d
commit
ba6d917457
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user