summaryrefslogtreecommitdiff
path: root/src/vm_mips.dasc
diff options
context:
space:
mode:
authorMike Pall <mike>2014-12-27 06:06:07 +0100
committerMike Pall <mike>2014-12-27 06:06:07 +0100
commitf45d11e2fea7a56dcf699e72dee40b475590128c (patch)
tree69a42ef995f3e49a4fe89d88a4d164a55a32ddb6 /src/vm_mips.dasc
parent6319e0312dd77ff0f59399a26ef96bfccacdf302 (diff)
downloadluajit2-f45d11e2fea7a56dcf699e72dee40b475590128c.tar.gz
MIPS: Fix excess stack growth in interpreter.
Diffstat (limited to 'src/vm_mips.dasc')
-rw-r--r--src/vm_mips.dasc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm_mips.dasc b/src/vm_mips.dasc
index 0ec13e60..96f20659 100644
--- a/src/vm_mips.dasc
+++ b/src/vm_mips.dasc
@@ -398,7 +398,7 @@ static void build_subroutines(BuildCtx *ctx)
| // - A return back from a lua_call() with (high) nresults adjustment.
| load_got lj_state_growstack
| move MULTRES, RD
- | move CARG2, TMP2
+ | srl CARG2, TMP2, 3
| call_intern lj_state_growstack // (lua_State *L, int n)
|. move CARG1, L
| lw TMP2, SAVE_NRES