Reviewers: danno, Paul Lind,

Message:
Please land the following commits together to avoid build errors:
http://codereview.chromium.org/8384021/
http://codereview.chromium.org/8428004/
http://codereview.chromium.org/8387044/
http://codereview.chromium.org/8432010/

Thank you.

Description:
MIPS: Use 8-byte alignment on native MIPS targets in Zone allocations.

MIPS requires an 8-byte alignment for all allocated memory pointers.

This fixes mjsunit div-mod on MIPS HW with --stress-opt --always-opt.

BUG=
TEST=


Please review this at http://codereview.chromium.org/8384021/

Affected files:
  M src/zone.h


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;


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to