optimization for tailcall does not seem to pay itself

This commit is contained in:
Roberto Ierusalimschy
2001-03-07 10:22:55 -03:00
parent f81b8adb3f
commit 5e870f86a2
5 changed files with 55 additions and 40 deletions

7
lvm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.c,v 1.172 2001/02/23 17:17:25 roberto Exp roberto $
** $Id: lvm.c,v 1.173 2001/02/23 20:30:52 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -357,11 +357,6 @@ StkId luaV_execute (lua_State *L, const Closure *cl, StkId base) {
L->top = base+tf->maxstacksize;
break;
}
case OP_TAILCALL: {
L->top = top;
luaD_call(L, base+GETARG_A(i), LUA_MULTRET);
return base+GETARG_B(i);
}
case OP_PUSHNIL: {
int n = GETARG_U(i);
lua_assert(n>0);