aboutsummaryrefslogtreecommitdiff
path: root/lopnames.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-09-10 13:20:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-09-10 13:20:03 -0300
commit91dad09f65984048ae43c8894d18acb785c7092b (patch)
treeea6c23c54d8659677da6259047ddd0c8e0b7e643 /lopnames.h
parent4518e5df24600cacdb3bab75d640348d28e8b769 (diff)
downloadlua-91dad09f65984048ae43c8894d18acb785c7092b.tar.gz
lua-91dad09f65984048ae43c8894d18acb785c7092b.tar.bz2
lua-91dad09f65984048ae43c8894d18acb785c7092b.zip
Removed arithmetic opcodes with immediate operand
The difference in performance between immediate operands and K operands does not seem to justify all those extra opcodes. We only keep OP_ADDI, due to its ubiquity and because the difference is a little more relevant. (Later, OP_SUBI will be implemented by OP_ADDI, negating the constant.)
Diffstat (limited to 'lopnames.h')
-rw-r--r--lopnames.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/lopnames.h b/lopnames.h
index 0fc1da1f..de347301 100644
--- a/lopnames.h
+++ b/lopnames.h
@@ -30,12 +30,6 @@ static const char *const opnames[] = {
30 "NEWTABLE", 30 "NEWTABLE",
31 "SELF", 31 "SELF",
32 "ADDI", 32 "ADDI",
33 "SUBI",
34 "MULI",
35 "MODI",
36 "POWI",
37 "DIVI",
38 "IDIVI",
39 "ADDK", 33 "ADDK",
40 "SUBK", 34 "SUBK",
41 "MULK", 35 "MULK",