avoid reading below the stack pointer in vmInvoke, since it upsets valgrind

This commit is contained in:
Joel Dice 2009-03-19 08:44:08 -06:00
parent 538e23c642
commit b871f430d0

View File

@ -133,16 +133,17 @@ LOCAL(test):
movl %ebp,%esp
// restore callee-saved registers
movl %esp,%ecx
subl $16,%ecx
subl $16,%esp
movl 0(%ecx),%ebx
movl 4(%ecx),%esi
movl 8(%ecx),%edi
movl 0(%esp),%ebx
movl 4(%esp),%esi
movl 8(%esp),%edi
// handle return value based on expected type
movl 28(%ebp),%ecx
addl $16,%esp
LOCAL(void):
cmpl $VOID_TYPE,%ecx
jne LOCAL(int64)