diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-12 11:56:22 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-12 11:56:22 -0300 |
commit | eeab473fc8fdce39c3a0a495a6a790d7906c7bdc (patch) | |
tree | f260370b15d8a196f4168d3e64dafb35c8083282 /lopcodes.c | |
parent | 6b8cdc9cdd545508af85d1de2013ea0fc64792b0 (diff) | |
download | lua-eeab473fc8fdce39c3a0a495a6a790d7906c7bdc.tar.gz lua-eeab473fc8fdce39c3a0a495a6a790d7906c7bdc.tar.bz2 lua-eeab473fc8fdce39c3a0a495a6a790d7906c7bdc.zip |
new fallback __le (less equal), for partial order
Diffstat (limited to 'lopcodes.c')
-rw-r--r-- | lopcodes.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.c,v 1.18 2002/05/06 15:51:41 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.19 2002/05/13 13:09:00 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 |
@@ -37,7 +37,10 @@ const char *const luaP_opnames[] = { | |||
37 | "CONCAT", | 37 | "CONCAT", |
38 | "JMP", | 38 | "JMP", |
39 | "EQ", | 39 | "EQ", |
40 | "CMP", | 40 | "LT", |
41 | "LE", | ||
42 | "GT", | ||
43 | "GE", | ||
41 | "TEST", | 44 | "TEST", |
42 | "CALL", | 45 | "CALL", |
43 | "TAILCALL", | 46 | "TAILCALL", |
@@ -82,7 +85,10 @@ const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
82 | ,opmode(0,0,1,1, 1,0,iABC) /* OP_CONCAT */ | 85 | ,opmode(0,0,1,1, 1,0,iABC) /* OP_CONCAT */ |
83 | ,opmode(0,0,0,0, 0,0,iAsBx) /* OP_JMP */ | 86 | ,opmode(0,0,0,0, 0,0,iAsBx) /* OP_JMP */ |
84 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_EQ */ | 87 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_EQ */ |
85 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_CMP */ | 88 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_LT */ |
89 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_LE */ | ||
90 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_GT */ | ||
91 | ,opmode(1,0,0,1, 0,0,iABC) /* OP_GE */ | ||
86 | ,opmode(1,0,0,1, 1,0,iABC) /* OP_TEST */ | 92 | ,opmode(1,0,0,1, 1,0,iABC) /* OP_TEST */ |
87 | ,opmode(0,0,0,0, 0,0,iABC) /* OP_CALL */ | 93 | ,opmode(0,0,0,0, 0,0,iABC) /* OP_CALL */ |
88 | ,opmode(0,0,0,0, 0,0,iABC) /* OP_TAILCALL */ | 94 | ,opmode(0,0,0,0, 0,0,iABC) /* OP_TAILCALL */ |