mirror of
https://github.com/lua/lua
synced 2024-11-22 21:01:26 +03:00
91dad09f65
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.)
99 lines
1.1 KiB
C
99 lines
1.1 KiB
C
/*
|
|
** $Id: lopnames.h $
|
|
** Opcode names
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#if !defined(lopnames_h)
|
|
#define lopnames_h
|
|
|
|
/* ORDER OP */
|
|
|
|
static const char *const opnames[] = {
|
|
"MOVE",
|
|
"LOADI",
|
|
"LOADF",
|
|
"LOADK",
|
|
"LOADKX",
|
|
"LOADBOOL",
|
|
"LOADNIL",
|
|
"GETUPVAL",
|
|
"SETUPVAL",
|
|
"GETTABUP",
|
|
"GETTABLE",
|
|
"GETI",
|
|
"GETFIELD",
|
|
"SETTABUP",
|
|
"SETTABLE",
|
|
"SETI",
|
|
"SETFIELD",
|
|
"NEWTABLE",
|
|
"SELF",
|
|
"ADDI",
|
|
"ADDK",
|
|
"SUBK",
|
|
"MULK",
|
|
"MODK",
|
|
"POWK",
|
|
"DIVK",
|
|
"IDIVK",
|
|
"BANDK",
|
|
"BORK",
|
|
"BXORK",
|
|
"SHRI",
|
|
"SHLI",
|
|
"ADD",
|
|
"SUB",
|
|
"MUL",
|
|
"MOD",
|
|
"POW",
|
|
"DIV",
|
|
"IDIV",
|
|
"BAND",
|
|
"BOR",
|
|
"BXOR",
|
|
"SHL",
|
|
"SHR",
|
|
"MMBIN",
|
|
"MMBINI",
|
|
"MMBINK",
|
|
"UNM",
|
|
"BNOT",
|
|
"NOT",
|
|
"LEN",
|
|
"CONCAT",
|
|
"CLOSE",
|
|
"TBC",
|
|
"JMP",
|
|
"EQ",
|
|
"LT",
|
|
"LE",
|
|
"EQK",
|
|
"EQI",
|
|
"LTI",
|
|
"LEI",
|
|
"GTI",
|
|
"GEI",
|
|
"TEST",
|
|
"TESTSET",
|
|
"CALL",
|
|
"TAILCALL",
|
|
"RETURN",
|
|
"RETURN0",
|
|
"RETURN1",
|
|
"FORLOOP",
|
|
"FORPREP",
|
|
"TFORPREP",
|
|
"TFORCALL",
|
|
"TFORLOOP",
|
|
"SETLIST",
|
|
"CLOSURE",
|
|
"VARARG",
|
|
"VARARGPREP",
|
|
"EXTRAARG",
|
|
NULL
|
|
};
|
|
|
|
#endif
|
|
|