Bug 698923 - Don't require 16 bytes alignment for VMFrame on sparc. r=luke
authorMike Hommey <mh+mozilla@glandium.org>
Mon, 13 Feb 2012 15:47:34 +0100
changeset 86720 32bc6264f4bf17fccf028f2f731fd3484c6265a8
parent 86719 0d95f0ca65a048eadfa7f2659b625b5f69685f3c
child 86721 8eef38643cebd4e8aec82a933b10627d18385aa4
push idunknown
push userunknown
push dateunknown
reviewersluke
bugs698923
milestone13.0a1
Bug 698923 - Don't require 16 bytes alignment for VMFrame on sparc. r=luke
js/src/methodjit/MethodJIT.cpp
--- a/js/src/methodjit/MethodJIT.cpp
+++ b/js/src/methodjit/MethodJIT.cpp
@@ -248,17 +248,17 @@ JS_STATIC_ASSERT(offsetof(FrameRegs, sp)
  * We make sure our CFI covers the code address GDB will actually use, by
  * placing a 'nop' *before* the entry point --- it is never executed --- and
  * having our CFI apply starting at that nop.
  */
 
 #if defined(__GNUC__) && !defined(_WIN64)
 
 /* If this assert fails, you need to realign VMFrame to 16 bytes. */
-#if defined(JS_CPU_ARM) || defined(JS_CPU_MIPS)
+#if defined(JS_CPU_ARM) || defined(JS_CPU_MIPS) || defined(JS_CPU_SPARC)
 JS_STATIC_ASSERT(sizeof(VMFrame) % 8 == 0);
 #else
 JS_STATIC_ASSERT(sizeof(VMFrame) % 16 == 0);
 #endif
 
 # if defined(JS_CPU_X64)
 
 /*