mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
PPC: Fix excess stack growth in interpreter.
This commit is contained in:
parent
16f910b4a8
commit
6319e0312d
@ -586,7 +586,7 @@ static void build_subroutines(BuildCtx *ctx)
|
|||||||
| // - A return back from a lua_call() with (high) nresults adjustment.
|
| // - A return back from a lua_call() with (high) nresults adjustment.
|
||||||
| stp BASE, L->top // Save current top held in BASE (yes).
|
| stp BASE, L->top // Save current top held in BASE (yes).
|
||||||
| mr SAVE0, RD
|
| mr SAVE0, RD
|
||||||
| mr CARG2, TMP2
|
| srwi CARG2, TMP2, 3
|
||||||
| mr CARG1, L
|
| mr CARG1, L
|
||||||
| bl extern lj_state_growstack // (lua_State *L, int n)
|
| bl extern lj_state_growstack // (lua_State *L, int n)
|
||||||
| lwz TMP2, SAVE_NRES
|
| lwz TMP2, SAVE_NRES
|
||||||
|
Loading…
Reference in New Issue
Block a user