Given that reg0 contains always VALUES(0), we can simplify OP_JT and OP_JNIL.

This commit is contained in:
jjgarcia 2008-06-19 15:00:50 +00:00
parent aa6b20fad1
commit 64ca376393

View file

@ -807,14 +807,14 @@ ecl_interpret(cl_object env, cl_object bytecodes, void *pc)
CASE(OP_JNIL); {
cl_oparg jump = GET_OPARG(vector);
NVALUES = 1;
if (Null(VALUES(0)))
if (Null(reg0))
vector += jump - OPARG_SIZE;
THREAD_NEXT;
}
CASE(OP_JT); {
cl_oparg jump = GET_OPARG(vector);
NVALUES = 1;
if (!Null(VALUES(0)))
if (!Null(reg0))
vector += jump - OPARG_SIZE;
THREAD_NEXT;
}