aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-25 14:47:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-25 14:47:14 -0300
commit801aaf37b14a1fad5bb49c9a4200d25680152471 (patch)
treee3cc5cdebac6d503091f4ba16444f8ecfa8dfdb2 /lopcodes.c
parent00af2faae71e6388ee61ef18b2c5902a42e9bc27 (diff)
downloadlua-801aaf37b14a1fad5bb49c9a4200d25680152471.tar.gz
lua-801aaf37b14a1fad5bb49c9a4200d25680152471.tar.bz2
lua-801aaf37b14a1fad5bb49c9a4200d25680152471.zip
simpler implementation for line information
Diffstat (limited to 'lopcodes.c')
-rw-r--r--lopcodes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 8d13a09f..c156f533 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.c,v 1.12 2002/03/08 19:10:32 roberto Exp roberto $ 2** $Id: lopcodes.c,v 1.13 2002/03/21 20:32:22 roberto Exp roberto $
3** extracted automatically from lopcodes.h by mkprint.lua 3** extracted automatically from lopcodes.h by mkprint.lua
4** DO NOT EDIT 4** DO NOT EDIT
5** See Copyright Notice in lua.h 5** See Copyright Notice in lua.h
@@ -59,11 +59,11 @@ const char *const luaP_opnames[] = {
59 59
60#define opmode(t,x,b,c,sa,k,m) (((t)<<OpModeT) | \ 60#define opmode(t,x,b,c,sa,k,m) (((t)<<OpModeT) | \
61 ((b)<<OpModeBreg) | ((c)<<OpModeCreg) | \ 61 ((b)<<OpModeBreg) | ((c)<<OpModeCreg) | \
62 ((sa)<<OpModesetA) | ((k)<<OpModeK) | (x)<<OpModeNoTrace | (m)) 62 ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m))
63 63
64 64
65const lu_byte luaP_opmodes[NUM_OPCODES] = { 65const lu_byte luaP_opmodes[NUM_OPCODES] = {
66/* T n B C sA K mode opcode */ 66/* T _ B C sA K mode opcode */
67 opmode(0,0,1,0, 1,0,iABC) /* OP_MOVE */ 67 opmode(0,0,1,0, 1,0,iABC) /* OP_MOVE */
68 ,opmode(0,0,0,0, 1,1,iABc) /* OP_LOADK */ 68 ,opmode(0,0,0,0, 1,1,iABc) /* OP_LOADK */
69 ,opmode(0,0,0,0, 1,0,iABC) /* OP_LOADBOOL */ 69 ,opmode(0,0,0,0, 1,0,iABC) /* OP_LOADBOOL */
@@ -96,7 +96,7 @@ const lu_byte luaP_opmodes[NUM_OPCODES] = {
96 ,opmode(0,0,0,0, 0,0,iABC) /* OP_CALL */ 96 ,opmode(0,0,0,0, 0,0,iABC) /* OP_CALL */
97 ,opmode(0,0,0,0, 0,0,iABC) /* OP_TAILCALL */ 97 ,opmode(0,0,0,0, 0,0,iABC) /* OP_TAILCALL */
98 ,opmode(0,0,0,0, 0,0,iABC) /* OP_RETURN */ 98 ,opmode(0,0,0,0, 0,0,iABC) /* OP_RETURN */
99 ,opmode(0,1,0,0, 0,0,iAsBc) /* OP_FORLOOP */ 99 ,opmode(0,0,0,0, 0,0,iAsBc) /* OP_FORLOOP */
100 ,opmode(0,0,0,0, 0,0,iABC) /* OP_TFORLOOP */ 100 ,opmode(0,0,0,0, 0,0,iABC) /* OP_TFORLOOP */
101 ,opmode(0,0,0,0, 0,0,iABc) /* OP_SETLIST */ 101 ,opmode(0,0,0,0, 0,0,iABc) /* OP_SETLIST */
102 ,opmode(0,0,0,0, 0,0,iABc) /* OP_SETLISTO */ 102 ,opmode(0,0,0,0, 0,0,iABc) /* OP_SETLISTO */