diff --git a/js/src/ion/arm/Trampoline-arm.cpp b/js/src/ion/arm/Trampoline-arm.cpp index a3a57990407..7861821cb01 100644 --- a/js/src/ion/arm/Trampoline-arm.cpp +++ b/js/src/ion/arm/Trampoline-arm.cpp @@ -574,7 +574,7 @@ IonCompartment::generateVMWrapper(JSContext *cx, const VMFunction &f) if (f.explicitArgs) { argsBase = r5; regs.take(argsBase); - masm.ma_add(sp, Imm32(sizeof(IonExitFrameLayout) + argumentPadding), argsBase); + masm.ma_add(sp, Imm32(IonExitFrameLayout::SizeWithFooter()), argsBase); } // Reserve space for the outparameter.