diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-07-19 14:12:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-07-19 14:12:21 -0300 |
| commit | 0d1c6f4188fe278d505f801d3bb8f8fd4749c8c4 (patch) | |
| tree | 13d93ff06b0b9606060b3bc712ad7e32bb671316 | |
| parent | fc6b32bcaaf486beeffd35af44932a53f44d1c65 (diff) | |
| download | lua-0d1c6f4188fe278d505f801d3bb8f8fd4749c8c4.tar.gz lua-0d1c6f4188fe278d505f801d3bb8f8fd4749c8c4.tar.bz2 lua-0d1c6f4188fe278d505f801d3bb8f8fd4749c8c4.zip | |
MAXINDEXRK can be redefined (for debugging, to force most values to
go through registers)
| -rw-r--r-- | lopcodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.h,v 1.147 2014/10/20 18:29:55 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.148 2014/10/25 11:50:46 roberto Exp roberto $ |
| 3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -139,7 +139,9 @@ enum OpMode {iABC, iABx, iAsBx, iAx}; /* basic instruction format */ | |||
| 139 | /* gets the index of the constant */ | 139 | /* gets the index of the constant */ |
| 140 | #define INDEXK(r) ((int)(r) & ~BITRK) | 140 | #define INDEXK(r) ((int)(r) & ~BITRK) |
| 141 | 141 | ||
| 142 | #if !defined(MAXINDEXRK) /* (for debugging only) */ | ||
| 142 | #define MAXINDEXRK (BITRK - 1) | 143 | #define MAXINDEXRK (BITRK - 1) |
| 144 | #endif | ||
| 143 | 145 | ||
| 144 | /* code a constant index as a RK value */ | 146 | /* code a constant index as a RK value */ |
| 145 | #define RKASK(x) ((x) | BITRK) | 147 | #define RKASK(x) ((x) | BITRK) |
