Don't use fast_next_opcode for JUMP_* opcodes. This fixes the problem
reported by Kurt B. Kaiser.
diff --git a/Python/ceval.c b/Python/ceval.c
index abefd32..85e9e6b 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2001,18 +2001,18 @@
case JUMP_FORWARD:
JUMPBY(oparg);
- goto fast_next_opcode;
+ continue;
PREDICTED_WITH_ARG(JUMP_IF_FALSE);
case JUMP_IF_FALSE:
w = TOP();
if (w == Py_True) {
PREDICT(POP_TOP);
- goto fast_next_opcode;
+ continue;
}
if (w == Py_False) {
JUMPBY(oparg);
- goto fast_next_opcode;
+ continue;
}
err = PyObject_IsTrue(w);
if (err > 0)
@@ -2028,11 +2028,11 @@
w = TOP();
if (w == Py_False) {
PREDICT(POP_TOP);
- goto fast_next_opcode;
+ continue;
}
if (w == Py_True) {
JUMPBY(oparg);
- goto fast_next_opcode;
+ continue;
}
err = PyObject_IsTrue(w);
if (err > 0) {
@@ -2047,7 +2047,7 @@
case JUMP_ABSOLUTE:
JUMPTO(oparg);
- goto fast_next_opcode;
+ continue;
case GET_ITER:
/* before: [obj]; after [getiter(obj)] */