aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-11-14 15:30:33 +0000
committerGitHub <noreply@github.com>2023-11-14 15:30:33 +0000
commita519b87958da0b340caef48349d6e3c23c98e47e (patch)
treedb7ddda2fae058c072c214bb3e8e58c11dc6bfa8 /Python/generated_cases.c.h
parentb11c443bb2ebfdd009e43ff208fa6324b658d15d (diff)
downloadcpython-a519b87958da0b340caef48349d6e3c23c98e47e.tar.gz
cpython-a519b87958da0b340caef48349d6e3c23c98e47e.zip
GH-111848: Convert remaining jumps to deopts into tier 2 code. (GH-112045)
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));