[Python-checkins] python/dist/src/Python ceval.c,2.364,2.365
nascheme@users.sourceforge.net
nascheme@users.sourceforge.net
Sun, 01 Jun 2003 12:21:16 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv16830/Python
Modified Files:
ceval.c
Log Message:
Use fast_next_opcode shortcut for forward jump opcodes (it's safe and
gives a small speedup).
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.364
retrieving revision 2.365
diff -C2 -d -r2.364 -r2.365
*** ceval.c 31 May 2003 07:04:16 -0000 2.364
--- ceval.c 1 Jun 2003 19:21:12 -0000 2.365
***************
*** 2002,2006 ****
case JUMP_FORWARD:
JUMPBY(oparg);
! continue;
PREDICTED_WITH_ARG(JUMP_IF_FALSE);
--- 2002,2006 ----
case JUMP_FORWARD:
JUMPBY(oparg);
! goto fast_next_opcode;
PREDICTED_WITH_ARG(JUMP_IF_FALSE);
***************
*** 2009,2017 ****
if (w == Py_True) {
PREDICT(POP_TOP);
! continue;
}
if (w == Py_False) {
JUMPBY(oparg);
! continue;
}
err = PyObject_IsTrue(w);
--- 2009,2017 ----
if (w == Py_True) {
PREDICT(POP_TOP);
! goto fast_next_opcode;
}
if (w == Py_False) {
JUMPBY(oparg);
! goto fast_next_opcode;
}
err = PyObject_IsTrue(w);
***************
*** 2029,2037 ****
if (w == Py_False) {
PREDICT(POP_TOP);
! continue;
}
if (w == Py_True) {
JUMPBY(oparg);
! continue;
}
err = PyObject_IsTrue(w);
--- 2029,2037 ----
if (w == Py_False) {
PREDICT(POP_TOP);
! goto fast_next_opcode;
}
if (w == Py_True) {
JUMPBY(oparg);
! goto fast_next_opcode;
}
err = PyObject_IsTrue(w);