aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-02-27 08:52:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-02-27 08:52:30 -0300
commit92f6e0c1bfb27cad95d99e99912e2e0c509dcc30 (patch)
tree1ab713c16652a5a4e667457041ce7364256a6b2c /lvm.c
parent5cd99b82b7fc11c527929e5e95f03767f6432d8e (diff)
downloadlua-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lvm.c b/lvm.c
index c66bbc8a..66d08e3f 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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;