small optimization for boolean constants + new format for SETLIST opcode

This commit is contained in:
Roberto Ierusalimschy
2004-10-04 16:01:53 -03:00
parent 5d834bdf57
commit 5ee87acd6b
6 changed files with 50 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lcode.h,v 1.38 2002/12/11 12:34:22 roberto Exp roberto $
** $Id: lcode.h,v 1.39 2004/05/31 18:51:50 roberto Exp $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -72,6 +72,7 @@ int luaK_getlabel (FuncState *fs);
void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v);
void luaK_infix (FuncState *fs, BinOpr op, expdesc *v);
void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, expdesc *v2);
void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
#endif