no more 'OP_CLOSE' instructions (use jumps to close upvalues)

This commit is contained in:
Roberto Ierusalimschy
2011-02-07 10:28:27 -02:00
parent 094a7d0290
commit f8d677f94c
4 changed files with 10 additions and 12 deletions

5
lvm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.c,v 2.128 2011/02/01 18:03:10 roberto Exp roberto $
** $Id: lvm.c,v 2.129 2011/02/01 18:32:55 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -793,9 +793,6 @@ void luaV_execute (lua_State *L) {
}
L->top = ci->top; /* correct top (in case of previous open call) */
)
vmcase(OP_CLOSE,
luaF_close(L, ra);
)
vmcase(OP_CLOSURE,
Proto *p = cl->p->p[GETARG_Bx(i)];
Closure *ncl = getcached(p, cl->upvals, base); /* cached closure */