summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-03-22 18:10:48 (GMT)
committerGitHub <noreply@github.com>2023-03-22 18:10:48 (GMT)
commit3468c768ce5e467799758ec70b840da08c3c1da9 (patch)
tree530832fd5fbd24d8e8fbb0e1148bd456087813f4 /Python/bytecodes.c
parent04adf2df395ded81922c71360a5d66b597471e49 (diff)
downloadcpython-3468c768ce5e467799758ec70b840da08c3c1da9.zip
cpython-3468c768ce5e467799758ec70b840da08c3c1da9.tar.gz
cpython-3468c768ce5e467799758ec70b840da08c3c1da9.tar.bz2
gh-102859: Remove JUMP_IF_FALSE_OR_POP and JUMP_IF_TRUE_OR_POP (#102870)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index f1fec0b..b5ead16 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -1918,56 +1918,6 @@ dummy_func(
}
}
- inst(JUMP_IF_FALSE_OR_POP, (cond -- cond if (jump))) {
- bool jump = false;
- int err;
- if (Py_IsTrue(cond)) {
- _Py_DECREF_NO_DEALLOC(cond);
- }
- else if (Py_IsFalse(cond)) {
- JUMPBY(oparg);
- jump = true;
- }
- else {
- err = PyObject_IsTrue(cond);
- if (err > 0) {
- Py_DECREF(cond);
- }
- else if (err == 0) {
- JUMPBY(oparg);
- jump = true;
- }
- else {
- goto error;
- }
- }
- }
-
- inst(JUMP_IF_TRUE_OR_POP, (cond -- cond if (jump))) {
- bool jump = false;
- int err;
- if (Py_IsFalse(cond)) {
- _Py_DECREF_NO_DEALLOC(cond);
- }
- else if (Py_IsTrue(cond)) {
- JUMPBY(oparg);
- jump = true;
- }
- else {
- err = PyObject_IsTrue(cond);
- if (err > 0) {
- JUMPBY(oparg);
- jump = true;
- }
- else if (err == 0) {
- Py_DECREF(cond);
- }
- else {
- goto error;
- }
- }
- }
-
inst(JUMP_BACKWARD_NO_INTERRUPT, (--)) {
/* This bytecode is used in the `yield from` or `await` loop.
* If there is an interrupt, we want it handled in the innermost