array `luaK_opproperties' keeps delta stack and mode for each opcode

This commit is contained in:
Roberto Ierusalimschy
2000-05-22 15:44:46 -03:00
parent 93d93a0bfb
commit 5c2dd7a9e0
6 changed files with 166 additions and 207 deletions

10
lcode.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lcode.h,v 1.11 2000/04/07 19:35:20 roberto Exp roberto $
** $Id: lcode.h,v 1.12 2000/04/12 18:47:03 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -20,6 +20,14 @@
#define NO_JUMP (-1)
enum Mode {iO, iU, iS, iAB}; /* instruction format */
extern const struct OpProperties {
char mode;
signed char delta;
} luaK_opproperties[];
void luaK_error (LexState *ls, const char *msg);
int luaK_code0 (FuncState *fs, OpCode o);
int luaK_code1 (FuncState *fs, OpCode o, int arg1);