aboutsummaryrefslogtreecommitdiff
path: root/lopnames.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-01-06 11:38:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-01-06 11:38:31 -0300
commit5ff408d2189c6c24fdf8908db4a31432bbdd6f15 (patch)
treebcd83d7547dab0d5418116eb10f9c601f2f2d3b9 /lopnames.h
parente3c83835e7b396ab7db538fb3b052f02d7807dee (diff)
downloadlua-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 'lopnames.h')
-rw-r--r--lopnames.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lopnames.h b/lopnames.h
index de347301..a2097a74 100644
--- a/lopnames.h
+++ b/lopnames.h
@@ -15,7 +15,8 @@ static const char *const opnames[] = {
15 "LOADF", 15 "LOADF",
16 "LOADK", 16 "LOADK",
17 "LOADKX", 17 "LOADKX",
18 "LOADBOOL", 18 "LOADFALSE",
19 "LOADTRUE",
19 "LOADNIL", 20 "LOADNIL",
20 "GETUPVAL", 21 "GETUPVAL",
21 "SETUPVAL", 22 "SETUPVAL",