diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-07 10:22:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-07 10:22:55 -0300 |
commit | 5e870f86a255988ca85eda795adc31063ec1ac70 (patch) | |
tree | 72c428d85c63cd8930217497652bfc387a57ba83 /lvm.c | |
parent | f81b8adb3f2738d2895511082793af622e8581d8 (diff) | |
download | lua-5e870f86a255988ca85eda795adc31063ec1ac70.tar.gz lua-5e870f86a255988ca85eda795adc31063ec1ac70.tar.bz2 lua-5e870f86a255988ca85eda795adc31063ec1ac70.zip |
optimization for tailcall does not seem to pay itself
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.172 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.173 2001/02/23 20:30:52 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -357,11 +357,6 @@ StkId luaV_execute (lua_State *L, const Closure *cl, StkId base) { | |||
357 | L->top = base+tf->maxstacksize; | 357 | L->top = base+tf->maxstacksize; |
358 | break; | 358 | break; |
359 | } | 359 | } |
360 | case OP_TAILCALL: { | ||
361 | L->top = top; | ||
362 | luaD_call(L, base+GETARG_A(i), LUA_MULTRET); | ||
363 | return base+GETARG_B(i); | ||
364 | } | ||
365 | case OP_PUSHNIL: { | 360 | case OP_PUSHNIL: { |
366 | int n = GETARG_U(i); | 361 | int n = GETARG_U(i); |
367 | lua_assert(n>0); | 362 | lua_assert(n>0); |