]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix BC_ISTYPE for WIN64 calling conventions.
authorMike Pall <mike>
Sat, 27 Apr 2013 23:49:28 +0000 (01:49 +0200)
committerMike Pall <mike>
Sat, 27 Apr 2013 23:49:28 +0000 (01:49 +0200)
src/vm_x86.dasc

index b7c5393f7d840cb9905a2c934941d16f7a67220b..338916a7c63da3233442838cc883935a6d09a295 100644 (file)
@@ -1135,11 +1135,11 @@ static void build_subroutines(BuildCtx *ctx)
   |
   |->vmeta_istype:
   |.if X64
-  |  mov L:CARG1d, SAVE_L
-  |  mov L:CARG1d->base, BASE          // Caveat: CARG2d/CARG3d may be BASE.
+  |  mov L:RB, SAVE_L
+  |  mov L:RB->base, BASE              // Caveat: CARG2d/CARG3d may be BASE.
   |  mov CARG2d, RA
   |  movzx CARG3d, PC_RD
-  |  mov L:RB, L:CARG1d
+  |  mov L:CARG1d, L:RB
   |.else
   |  movzx RD, PC_RD
   |  mov ARG2, RA