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

Unified Diff: src/zone.h

Issue 8384021: MIPS: Use 8-byte alignment on native MIPS targets in Zone allocations. (Closed)
Patch Set: Rebased on r9892 Created 9 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/zone.h
diff --git a/src/zone.h b/src/zone.h
index f60ac0d3efc9363a6ecbbe1911d41a05b33fd6bc..af2a60033e7d3e039054e596c9633cdd5f7970d1 100644
--- a/src/zone.h
+++ b/src/zone.h
@@ -87,7 +87,11 @@ class Zone {
friend class ZoneScope;
// All pointers returned from New() have this alignment.
+#if V8_HOST_ARCH_MIPS
+ static const int kAlignment = 2 * kPointerSize;
+#else
static const int kAlignment = kPointerSize;
+#endif
// Never allocate segments smaller than this size in bytes.
static const int kMinimumSegmentSize = 8 * KB;
« 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