temp workaround in listcode() to emit old opcode names for GETTABLE_SK, SELF_SK and SETTABLE_SK

gccjit-ravi534 0.17
Dibyendu Majumdar 8 years ago
parent dcc8c30d75
commit af931bf5ed

@ -468,7 +468,11 @@ static char *buildop (Proto *p, int pc, char *buff) {
Instruction i = p->code[pc];
OpCode o = GET_OPCODE(i);
const char *name = luaP_opnames[o];
/* FIXME Temp hack to output old opcodes so that the tests
do not break */
if (strcmp(name, "GETTABLE_SK") == 0) name = "GETTABLE";
else if (strcmp(name, "SELF_SK") == 0) name = "SELF";
else if (strcmp(name, "SETTABLE_SK") == 0) name = "SETTABLE";
int line = getfuncline(p, pc);
sprintf(buff, "(%4d) %4d - ", line, pc);
switch (getOpMode(o)) {

Loading…
Cancel
Save