aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_mips.h
diff options
context:
space:
mode:
authorMike Pall <mike>2013-08-28 13:06:19 +0200
committerMike Pall <mike>2013-08-30 23:38:17 +0200
commit517500ba48a290699d5a2ec7465bf76a5109c49f (patch)
treeb780b0919bd2b79db462d0f392158d4b1ee6339c /src/lj_asm_mips.h
parent5120240b77e4544b9b7405b4849a6cc63cdbbe1e (diff)
downloadluajit-517500ba48a290699d5a2ec7465bf76a5109c49f.tar.gz
luajit-517500ba48a290699d5a2ec7465bf76a5109c49f.tar.bz2
luajit-517500ba48a290699d5a2ec7465bf76a5109c49f.zip
Save currently executing lua_State in g->cur_L.
This is only a good approximation due to deficiencies in the design of the Lua/C API. It indicates _some_ valid state that is/was executing. Also reorder L->cframe stores to achieve a synchronously consistent state.
Diffstat (limited to 'src/lj_asm_mips.h')
-rw-r--r--src/lj_asm_mips.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_mips.h b/src/lj_asm_mips.h
index 3d061eb4..74eff10b 100644
--- a/src/lj_asm_mips.h
+++ b/src/lj_asm_mips.h
@@ -1586,7 +1586,7 @@ static void asm_stack_check(ASMState *as, BCReg topslot,
1586 emit_tsi(as, MIPSI_LW, tmp, tmp, offsetof(lua_State, maxstack)); 1586 emit_tsi(as, MIPSI_LW, tmp, tmp, offsetof(lua_State, maxstack));
1587 if (pbase == RID_TMP) 1587 if (pbase == RID_TMP)
1588 emit_getgl(as, RID_TMP, jit_base); 1588 emit_getgl(as, RID_TMP, jit_base);
1589 emit_getgl(as, tmp, jit_L); 1589 emit_getgl(as, tmp, cur_L);
1590 if (allow == RSET_EMPTY) /* Spill temp. register. */ 1590 if (allow == RSET_EMPTY) /* Spill temp. register. */
1591 emit_tsi(as, MIPSI_SW, tmp, RID_SP, 0); 1591 emit_tsi(as, MIPSI_SW, tmp, RID_SP, 0);
1592} 1592}