Browse Source

Merge branch 'master' into v2.1

Mike Pall 4 years ago
parent
commit
351bb43a07
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/vm_x86.dasc

+ 4 - 0
src/vm_x86.dasc

@@ -1372,7 +1372,11 @@ static void build_subroutines(BuildCtx *ctx)
   |  mov LFUNC:RB, [RA-8]
   |  add NARGS:RD, 1
   |  // This is fragile. L->base must not move, KBASE must always be defined.
+  |.if x64
+  |  cmp KBASEa, rdx			// Continue with CALLT if flag set.
+  |.else
   |  cmp KBASE, BASE			// Continue with CALLT if flag set.
+  |.endif
   |  je ->BC_CALLT_Z
   |  mov BASE, RA
   |  ins_call				// Otherwise call resolved metamethod.