diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-07 10:28:27 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-02-07 10:28:27 -0200 |
| commit | f8d677f94c3b4309be94698d33aeb0590a51eabc (patch) | |
| tree | 139b3adda71ce4b345005da99acd059a4b883e39 /lvm.c | |
| parent | 094a7d0290bbbe248d9d29b28c2567283d5ad0ba (diff) | |
| download | lua-f8d677f94c3b4309be94698d33aeb0590a51eabc.tar.gz lua-f8d677f94c3b4309be94698d33aeb0590a51eabc.tar.bz2 lua-f8d677f94c3b4309be94698d33aeb0590a51eabc.zip | |
no more 'OP_CLOSE' instructions (use jumps to close upvalues)
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 2.128 2011/02/01 18:03:10 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.129 2011/02/01 18:32:55 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 | */ |
| @@ -793,9 +793,6 @@ void luaV_execute (lua_State *L) { | |||
| 793 | } | 793 | } |
| 794 | L->top = ci->top; /* correct top (in case of previous open call) */ | 794 | L->top = ci->top; /* correct top (in case of previous open call) */ |
| 795 | ) | 795 | ) |
| 796 | vmcase(OP_CLOSE, | ||
| 797 | luaF_close(L, ra); | ||
| 798 | ) | ||
| 799 | vmcase(OP_CLOSURE, | 796 | vmcase(OP_CLOSURE, |
| 800 | Proto *p = cl->p->p[GETARG_Bx(i)]; | 797 | Proto *p = cl->p->p[GETARG_Bx(i)]; |
| 801 | Closure *ncl = getcached(p, cl->upvals, base); /* cached closure */ | 798 | Closure *ncl = getcached(p, cl->upvals, base); /* cached closure */ |
