diff options
Diffstat (limited to '')
-rw-r--r-- | src/vm_x86.dasc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm_x86.dasc b/src/vm_x86.dasc index b26cde4f..3dd7dbae 100644 --- a/src/vm_x86.dasc +++ b/src/vm_x86.dasc | |||
@@ -1372,7 +1372,11 @@ static void build_subroutines(BuildCtx *ctx) | |||
1372 | | mov LFUNC:RB, [RA-8] | 1372 | | mov LFUNC:RB, [RA-8] |
1373 | | add NARGS:RD, 1 | 1373 | | add NARGS:RD, 1 |
1374 | | // This is fragile. L->base must not move, KBASE must always be defined. | 1374 | | // This is fragile. L->base must not move, KBASE must always be defined. |
1375 | |.if x64 | ||
1376 | | cmp KBASEa, rdx // Continue with CALLT if flag set. | ||
1377 | |.else | ||
1375 | | cmp KBASE, BASE // Continue with CALLT if flag set. | 1378 | | cmp KBASE, BASE // Continue with CALLT if flag set. |
1379 | |.endif | ||
1376 | | je ->BC_CALLT_Z | 1380 | | je ->BC_CALLT_Z |
1377 | | mov BASE, RA | 1381 | | mov BASE, RA |
1378 | | ins_call // Otherwise call resolved metamethod. | 1382 | | ins_call // Otherwise call resolved metamethod. |