aboutsummaryrefslogtreecommitdiff
path: root/src/vm_mips64.dasc
diff options
context:
space:
mode:
authorMike Pall <mike>2023-09-21 05:19:55 +0200
committerMike Pall <mike>2023-09-21 05:19:55 +0200
commitd1a2fef8a8f53b0055ee041f7f63d83a27444ffa (patch)
treeac2d1265b5ed76c90aa9b3dab1c834c50a773234 /src/vm_mips64.dasc
parent234dbc481e7c218b7b1fd6777beca33dfeb7b801 (diff)
downloadluajit-d1a2fef8a8f53b0055ee041f7f63d83a27444ffa.tar.gz
luajit-d1a2fef8a8f53b0055ee041f7f63d83a27444ffa.tar.bz2
luajit-d1a2fef8a8f53b0055ee041f7f63d83a27444ffa.zip
LJ_FR2: Fix stack checks in vararg calls.
Thanks to Peter Cawley. #1048
Diffstat (limited to 'src/vm_mips64.dasc')
-rw-r--r--src/vm_mips64.dasc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vm_mips64.dasc b/src/vm_mips64.dasc
index 6c215f2b..ef0d901d 100644
--- a/src/vm_mips64.dasc
+++ b/src/vm_mips64.dasc
@@ -5396,6 +5396,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
5396 | settp LFUNC:RB, TMP0 5396 | settp LFUNC:RB, TMP0
5397 | daddu TMP0, RA, RC 5397 | daddu TMP0, RA, RC
5398 | sd LFUNC:RB, 0(TMP1) // Store (tagged) copy of LFUNC. 5398 | sd LFUNC:RB, 0(TMP1) // Store (tagged) copy of LFUNC.
5399 | daddiu TMP2, TMP2, -8
5399 | daddiu TMP3, RC, 16+FRAME_VARG 5400 | daddiu TMP3, RC, 16+FRAME_VARG
5400 | sltu AT, TMP0, TMP2 5401 | sltu AT, TMP0, TMP2
5401 | ld KBASE, -4+PC2PROTO(k)(PC) 5402 | ld KBASE, -4+PC2PROTO(k)(PC)