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

Unified Diff: src/runtime.cc

Issue 74803002: [Sheriff] Revert "MIPS: Ensure double aligned allocations through runtime routines." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 1001fe21f54b8587359f81a7e839d919c003b230..28506dde49a11cd6aa9d6c91ab5ce21e22301f64 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -9786,7 +9786,6 @@ static MaybeObject* Allocate(Isolate* isolate,
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());
@@ -9798,9 +9797,6 @@ static MaybeObject* Allocate(Isolate* isolate,
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;
}
« 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