From 91dad09f65984048ae43c8894d18acb785c7092b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 10 Sep 2019 13:20:03 -0300 Subject: 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.) --- lopnames.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lopnames.h') 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[] = { "NEWTABLE", "SELF", "ADDI", - "SUBI", - "MULI", - "MODI", - "POWI", - "DIVI", - "IDIVI", "ADDK", "SUBK", "MULK", -- cgit v1.2.3-55-g6feb