no more special cases for closures with 0 upvalues (performance is the same,

memory use a little higher, code much simpler).
This commit is contained in:
Roberto Ierusalimschy
2000-03-29 17:19:20 -03:00
parent b53dc0c485
commit a69356e9e0
16 changed files with 128 additions and 194 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.c,v 1.36 2000/03/10 18:37:44 roberto Exp roberto $
** $Id: ltable.c,v 1.37 2000/03/27 20:10:21 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -52,12 +52,6 @@ Node *luaH_mainposition (const Hash *t, const TObject *key) {
case TAG_TABLE:
h = IntPoint(L, avalue(key));
break;
case TAG_LPROTO:
h = IntPoint(L, tfvalue(key));
break;
case TAG_CPROTO:
h = IntPoint(L, fvalue(key));
break;
case TAG_LCLOSURE: case TAG_CCLOSURE:
h = IntPoint(L, clvalue(key));
break;