Define CFRAME structure for x64 interpreter.

This commit is contained in:
Mike Pall
2009-12-28 23:45:32 +01:00
parent 61abf342a3
commit 8a9cfa4b45
3 changed files with 35 additions and 14 deletions

View File

@@ -264,8 +264,9 @@ void lj_dispatch_ins(lua_State *L, const BCIns *pc, uint32_t nres)
GCproto *pt = funcproto(fn);
BCReg slots = cur_topslot(pt, pc, nres);
global_State *g = G(L);
const BCIns *oldpc = cframe_Lpc(L);
cframe_Lpc(L) = pc;
void *cf = cframe_raw(L->cframe);
const BCIns *oldpc = cframe_pc(cf);
setcframe_pc(cf, pc);
L->top = L->base + slots; /* Fix top. */
#if LJ_HASJIT
{