mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
x64/LJ_GC64: Fix __call metamethod for tailcall.
This commit is contained in:
parent
6360f6e106
commit
e77638f922
@ -1105,11 +1105,11 @@ static void build_subroutines(BuildCtx *ctx)
|
||||
| mov BASE, L:RB->base
|
||||
| mov NARGS:RDd, TMP1d
|
||||
| mov LFUNC:RB, [RA-16]
|
||||
| cleartp LFUNC:RB
|
||||
| add NARGS:RDd, 1
|
||||
| // This is fragile. L->base must not move, KBASE must always be defined.
|
||||
| cmp KBASE, BASE // Continue with CALLT if flag set.
|
||||
| je ->BC_CALLT_Z
|
||||
| cleartp LFUNC:RB
|
||||
| mov BASE, RA
|
||||
| ins_call // Otherwise call resolved metamethod.
|
||||
|
|
||||
|
Loading…
Reference in New Issue
Block a user