diff --git a/src/compile-x86.S b/src/compile-x86.S index 728b0cfd69..1938bd5aae 100644 --- a/src/compile-x86.S +++ b/src/compile-x86.S @@ -400,9 +400,10 @@ GLOBAL(vmJumpAndInvoke): movl 12(%esp),%ecx - // allocate new frame, adding room for callee-saved registers + // allocate new frame, adding room for callee-saved registers, + // return address, and frame pointer subl 24(%esp),%ecx - subl $CALLEE_SAVED_REGISTER_FOOTPRINT,%ecx + subl $CALLEE_SAVED_REGISTER_FOOTPRINT+8,%ecx movl 4(%esp),%ebx