diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-01-06 11:38:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-01-06 11:38:31 -0300 |
commit | 5ff408d2189c6c24fdf8908db4a31432bbdd6f15 (patch) | |
tree | bcd83d7547dab0d5418116eb10f9c601f2f2d3b9 /ljumptab.h | |
parent | e3c83835e7b396ab7db538fb3b052f02d7807dee (diff) | |
download | lua-5ff408d2189c6c24fdf8908db4a31432bbdd6f15.tar.gz lua-5ff408d2189c6c24fdf8908db4a31432bbdd6f15.tar.bz2 lua-5ff408d2189c6c24fdf8908db4a31432bbdd6f15.zip |
Changed internal representation of booleans
Instead of an explicit value (field 'b'), true and false use different
tag variants. This avoids reading an extra field and results in more
direct code. (Most code that uses booleans needs to distinguish between
true and false anyway.)
Diffstat (limited to 'ljumptab.h')
-rw-r--r-- | ljumptab.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -30,7 +30,8 @@ static void *disptab[NUM_OPCODES] = { | |||
30 | &&L_OP_LOADF, | 30 | &&L_OP_LOADF, |
31 | &&L_OP_LOADK, | 31 | &&L_OP_LOADK, |
32 | &&L_OP_LOADKX, | 32 | &&L_OP_LOADKX, |
33 | &&L_OP_LOADBOOL, | 33 | &&L_OP_LOADFALSE, |
34 | &&L_OP_LOADTRUE, | ||
34 | &&L_OP_LOADNIL, | 35 | &&L_OP_LOADNIL, |
35 | &&L_OP_GETUPVAL, | 36 | &&L_OP_GETUPVAL, |
36 | &&L_OP_SETUPVAL, | 37 | &&L_OP_SETUPVAL, |