From 5be9835d4abfb8423d110eba99e8139b0a1dc3d9 Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Wed, 13 Mar 2013 20:59:51 -0700 Subject: [PATCH] Bug 850548 - fix ion::StackAlignment value on non-GNU (r=dvander) --HG-- extra : rebase_source : 424e4aa6cdd104b0c7f47b9c6495f45c770d155f --- js/src/ion/x86/Assembler-x86.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/src/ion/x86/Assembler-x86.h b/js/src/ion/x86/Assembler-x86.h index be1ca9f0d0c3..48f9fade06a5 100644 --- a/js/src/ion/x86/Assembler-x86.h +++ b/js/src/ion/x86/Assembler-x86.h @@ -66,7 +66,11 @@ static const Register PreBarrierReg = edx; // GCC stack is aligned on 16 bytes, but we don't maintain the invariant in // jitted code. +#if defined(__GNUC__) static const uint32_t StackAlignment = 16; +#else +static const uint32_t StackAlignment = 4; +#endif static const bool StackKeptAligned = false; struct ImmTag : public Imm32