aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-31 10:00:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-31 10:00:25 -0300
commita424a112b54fb78b0b4f0afed12e5aca8f27c550 (patch)
treea27e44e6e18782f7b8abcd9591d9dbbf6eb8afdd
parentb858161fbcd3992e91c1e555ca7797ec8bec3f84 (diff)
downloadlua-a424a112b54fb78b0b4f0afed12e5aca8f27c550.tar.gz
lua-a424a112b54fb78b0b4f0afed12e5aca8f27c550.tar.bz2
lua-a424a112b54fb78b0b4f0afed12e5aca8f27c550.zip
clearance of debuging code (left by mistake)
-rw-r--r--lvm.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lvm.c b/lvm.c
index bbdbea18..7dd083af 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.281 2003/03/07 13:21:31 roberto Exp roberto $ 2** $Id: lvm.c,v 1.282 2003/03/11 12:30:37 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*/
@@ -394,21 +394,15 @@ static void Arith (lua_State *L, StkId ra,
394#define dojump(pc, i) ((pc) += (i)) 394#define dojump(pc, i) ((pc) += (i))
395 395
396 396
397unsigned int count = 0;
398
399StkId luaV_execute (lua_State *L) { 397StkId luaV_execute (lua_State *L) {
400 LClosure *cl; 398 LClosure *cl;
401 TObject *k; 399 TObject *k;
402 const Instruction *pc; 400 const Instruction *pc;
403unsigned int ii, ic, ir, io;
404ii = count;
405 callentry: /* entry point when calling new functions */ 401 callentry: /* entry point when calling new functions */
406ic = count;
407 L->ci->u.l.pc = &pc; 402 L->ci->u.l.pc = &pc;
408 if (L->hookmask & LUA_MASKCALL) 403 if (L->hookmask & LUA_MASKCALL)
409 luaD_callhook(L, LUA_HOOKCALL, -1); 404 luaD_callhook(L, LUA_HOOKCALL, -1);
410 retentry: /* entry point when returning to old functions */ 405 retentry: /* entry point when returning to old functions */
411ir = count;
412 lua_assert(L->ci->state == CI_SAVEDPC || 406 lua_assert(L->ci->state == CI_SAVEDPC ||
413 L->ci->state == (CI_SAVEDPC | CI_CALLING)); 407 L->ci->state == (CI_SAVEDPC | CI_CALLING));
414 L->ci->state = CI_HASFRAME; /* activate frame */ 408 L->ci->state = CI_HASFRAME; /* activate frame */
@@ -419,7 +413,6 @@ ir = count;
419 for (;;) { 413 for (;;) {
420 const Instruction i = *pc++; 414 const Instruction i = *pc++;
421 StkId base, ra; 415 StkId base, ra;
422count++;
423 if ((L->hookmask & (LUA_MASKLINE | LUA_MASKCOUNT)) && 416 if ((L->hookmask & (LUA_MASKLINE | LUA_MASKCOUNT)) &&
424 (--L->hookcount == 0 || L->hookmask & LUA_MASKLINE)) { 417 (--L->hookcount == 0 || L->hookmask & LUA_MASKLINE)) {
425 traceexec(L); 418 traceexec(L);
@@ -668,7 +661,6 @@ count++;
668 case OP_RETURN: { 661 case OP_RETURN: {
669 CallInfo *ci = L->ci - 1; /* previous function frame */ 662 CallInfo *ci = L->ci - 1; /* previous function frame */
670 int b = GETARG_B(i); 663 int b = GETARG_B(i);
671io = count;
672 if (b != 0) L->top = ra+b-1; 664 if (b != 0) L->top = ra+b-1;
673 lua_assert(L->ci->state & CI_HASFRAME); 665 lua_assert(L->ci->state & CI_HASFRAME);
674 if (L->openupval) luaF_close(L, base); 666 if (L->openupval) luaF_close(L, base);