aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 6cbc54c8e62..fe0cbfe6330 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -3435,14 +3435,14 @@
goto enter_tier_one;
}
- TARGET(POP_JUMP_IF_FALSE) {
+ TARGET(POP_JUMP_IF_TRUE) {
_Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
next_instr += 2;
- INSTRUCTION_STATS(POP_JUMP_IF_FALSE);
+ INSTRUCTION_STATS(POP_JUMP_IF_TRUE);
PyObject *cond;
cond = stack_pointer[-1];
assert(PyBool_Check(cond));
- int flag = Py_IsFalse(cond);
+ int flag = Py_IsTrue(cond);
#if ENABLE_SPECIALIZATION
this_instr[1].cache = (this_instr[1].cache << 1) | flag;
#endif
@@ -3451,14 +3451,14 @@
DISPATCH();
}
- TARGET(POP_JUMP_IF_TRUE) {
+ TARGET(POP_JUMP_IF_FALSE) {
_Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
next_instr += 2;
- INSTRUCTION_STATS(POP_JUMP_IF_TRUE);
+ INSTRUCTION_STATS(POP_JUMP_IF_FALSE);
PyObject *cond;
cond = stack_pointer[-1];
assert(PyBool_Check(cond));
- int flag = Py_IsTrue(cond);
+ int flag = Py_IsFalse(cond);
#if ENABLE_SPECIALIZATION
this_instr[1].cache = (this_instr[1].cache << 1) | flag;
#endif
@@ -3485,7 +3485,7 @@
Py_DECREF(value);
}
}
- // POP_JUMP_IF_TRUE
+ // _POP_JUMP_IF_TRUE
cond = b;
{
assert(PyBool_Check(cond));
@@ -3517,7 +3517,7 @@
Py_DECREF(value);
}
}
- // POP_JUMP_IF_FALSE
+ // _POP_JUMP_IF_FALSE
cond = b;
{
assert(PyBool_Check(cond));