Revision: 17809
Author: [email protected]
Date: Sun Nov 17 17:23:58 2013 UTC
Log: MIPS: Ensure double aligned allocations through runtime routines.
3rd (of 3) CLs to ensure complete alignment of FixedDoubleArrays.
TEST=
BUG=
[email protected], [email protected]
Review URL: https://codereview.chromium.org/35313002
Patch from Dusan Milosavljevic <[email protected]>.
http://code.google.com/p/v8/source/detail?r=17809
Modified:
/branches/bleeding_edge/src/runtime.cc
=======================================
--- /branches/bleeding_edge/src/runtime.cc Fri Nov 15 16:37:15 2013 UTC
+++ /branches/bleeding_edge/src/runtime.cc Sun Nov 17 17:23:58 2013 UTC
@@ -9786,6 +9786,7 @@
bool double_align,
AllocationSpace space) {
Heap* heap = isolate->heap();
+ if (double_align) size += kPointerSize;
RUNTIME_ASSERT(IsAligned(size, kPointerSize));
RUNTIME_ASSERT(size > 0);
RUNTIME_ASSERT(size <= heap->MaxRegularSpaceAllocationSize());
@@ -9797,6 +9798,9 @@
MemoryChunk* chunk = MemoryChunk::FromAddress(allocation->address());
ASSERT(chunk->owner()->identity() == space);
#endif
+ if (double_align) {
+ allocation = heap->EnsureDoubleAligned(allocation, size);
+ }
heap->CreateFillerObjectAt(allocation->address(), size);
return allocation;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.