diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-27 08:52:30 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-27 08:52:30 -0300 |
commit | 92f6e0c1bfb27cad95d99e99912e2e0c509dcc30 (patch) | |
tree | 1ab713c16652a5a4e667457041ce7364256a6b2c /lvm.c | |
parent | 5cd99b82b7fc11c527929e5e95f03767f6432d8e (diff) | |
download | lua-92f6e0c1bfb27cad95d99e99912e2e0c509dcc30.tar.gz lua-92f6e0c1bfb27cad95d99e99912e2e0c509dcc30.tar.bz2 lua-92f6e0c1bfb27cad95d99e99912e2e0c509dcc30.zip |
no-nonsense debug information about tail calls
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.275 2003/02/11 10:46:24 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.276 2003/02/18 16:02:56 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 | */ |
@@ -648,6 +648,7 @@ StkId luaV_execute (lua_State *L) { | |||
648 | (L->ci - 1)->top = L->top = base+aux; /* correct top */ | 648 | (L->ci - 1)->top = L->top = base+aux; /* correct top */ |
649 | lua_assert(L->ci->state & CI_SAVEDPC); | 649 | lua_assert(L->ci->state & CI_SAVEDPC); |
650 | (L->ci - 1)->u.l.savedpc = L->ci->u.l.savedpc; | 650 | (L->ci - 1)->u.l.savedpc = L->ci->u.l.savedpc; |
651 | (L->ci - 1)->u.l.tailcalls++; /* one more call lost */ | ||
651 | (L->ci - 1)->state = CI_SAVEDPC; | 652 | (L->ci - 1)->state = CI_SAVEDPC; |
652 | L->ci--; /* remove new frame */ | 653 | L->ci--; /* remove new frame */ |
653 | L->base = L->ci->base; | 654 | L->base = L->ci->base; |