Implement down-recursion.

This commit is contained in:
Mike Pall
2010-03-01 06:45:30 +01:00
parent 69ea553024
commit e7b737aa12
7 changed files with 114 additions and 13 deletions

View File

@@ -380,11 +380,8 @@ void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc)
L->top = L->base + slots; /* Fix top again. */
}
}
if ((g->hookmask & LUA_MASKRET)) {
BCOp op = bc_op(pc[-1]);
if (op == BC_RETM || op == BC_RET || op == BC_RET0 || op == BC_RET1)
callhook(L, LUA_HOOKRET, -1);
}
if ((g->hookmask & LUA_MASKRET) && bc_isret(bc_op(pc[-1])))
callhook(L, LUA_HOOKRET, -1);
}
/* Initialize call. Ensure stack space and clear missing parameters. */