Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: src/heap/heap.cc

Issue 1128923002: Only double align in scavenger on non-64 bit platforms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 22029d63c41a387a44d92cd1d15b8ece61332c3c..e7f728361af8ad2ffe5b4988c5ee78dc3d3aeade 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)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698