fix continuations=true build for Windows

This commit is contained in:
Joel Dice 2009-12-02 19:29:57 -07:00
parent 2bb5ccebd3
commit 8b11f0c271
2 changed files with 8 additions and 0 deletions

View File

@ -396,9 +396,13 @@ GLOBAL(vmJumpAndInvoke):
movl 4(%esp),%ebx
// set return address
#ifdef __MINGW32__
movl $vmInvoke_returnAddress,%esi
#else
call LOCAL(getPC)
addl $_GLOBAL_OFFSET_TABLE_,%esi
movl vmInvoke_returnAddress@GOT(%esi),%esi
#endif
movl %esi,(%ecx)
// copy arguments into place

View File

@ -131,9 +131,13 @@ LOCAL(vmInvoke_continuationTest):
// set the return address to vmInvoke_returnAddress
movl CONTINUATION_RETURN_ADDRESS_OFFSET(%ecx),%edi
#ifdef __MINGW32__
movl $vmInvoke_returnAddress,%esi
#else
call LOCAL(getPC)
addl $_GLOBAL_OFFSET_TABLE_,%esi
movl vmInvoke_returnAddress@GOT(%esi),%esi
#endif
movl %esi,(%esp,%edi,1)
// save the current base pointer in the frame and update it