History

Lua 5.2.0-work1

Lua Team committed 16 years ago

Commit 4ea600a1 parent d44fc9186 files · +6353 −5138Browse files

Showing the changes to src/lcode.h (1 of 86 files). Show all

Unified · Split

src/lcode.h+9−4
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lcode.h,v 1.48.1.1 2007/12/27 13:02:25 roberto Exp $
2+** $Id: lcode.h,v 1.52 2009/09/23 20:33:05 roberto Exp $
33 ** Code generator for Lua
44 ** See Copyright Notice in lua.h
55 */
@@ -21,13 +21,13 @@ · 15 unmodified lines
2121
2222
2323 /*
24−** grep "ORDER OPR" if you change these enums
24+** grep "ORDER OPR" if you change these enums (ORDER OP)
2525 */
2626 typedef enum BinOpr {
2727 OPR_ADD, OPR_SUB, OPR_MUL, OPR_DIV, OPR_MOD, OPR_POW,
2828 OPR_CONCAT,
29− OPR_NE, OPR_EQ,
30− OPR_LT, OPR_LE, OPR_GT, OPR_GE,
29+ OPR_EQ, OPR_LT, OPR_LE,
30+ OPR_NE, OPR_GT, OPR_GE,
3131 OPR_AND, OPR_OR,
3232 OPR_NOBINOPR
3333 } BinOpr;
@@ -42,8 +42,13 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr; · 8 unmodified lines
4242
4343 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET)
4444
45+#define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t)
46+
47+#define luaK_codek(fs,reg,k) luaK_codeABxX(fs, OP_LOADK, reg, k)
48+
4549 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
4650 LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
51+LUAI_FUNC int luaK_codeABxX (FuncState *fs, OpCode o, int reg, int k);
4752 LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
4853 LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n);
4954 LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t