summaryrefslogtreecommitdiffstats
path: root/Python/opcode_metadata.h
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/opcode_metadata.h
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/opcode_metadata.h')
-rw-r--r--Python/opcode_metadata.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/opcode_metadata.h b/Python/opcode_metadata.h
index ee760ab..920b759 100644
--- a/Python/opcode_metadata.h
+++ b/Python/opcode_metadata.h
@@ -247,10 +247,6 @@ _PyOpcode_num_popped(int opcode, int oparg, bool jump) {
return 1;
case POP_JUMP_IF_NONE:
return 1;
- case JUMP_IF_FALSE_OR_POP:
- return 1;
- case JUMP_IF_TRUE_OR_POP:
- return 1;
case JUMP_BACKWARD_NO_INTERRUPT:
return 0;
case GET_LEN:
@@ -599,10 +595,6 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) {
return 0;
case POP_JUMP_IF_NONE:
return 0;
- case JUMP_IF_FALSE_OR_POP:
- return (jump ? 1 : 0);
- case JUMP_IF_TRUE_OR_POP:
- return (jump ? 1 : 0);
case JUMP_BACKWARD_NO_INTERRUPT:
return 0;
case GET_LEN:
@@ -836,8 +828,6 @@ const struct opcode_metadata _PyOpcode_opcode_metadata[256] = {
[POP_JUMP_IF_TRUE] = { true, INSTR_FMT_IB },
[POP_JUMP_IF_NOT_NONE] = { true, INSTR_FMT_IB },
[POP_JUMP_IF_NONE] = { true, INSTR_FMT_IB },
- [JUMP_IF_FALSE_OR_POP] = { true, INSTR_FMT_IB },
- [JUMP_IF_TRUE_OR_POP] = { true, INSTR_FMT_IB },
[JUMP_BACKWARD_NO_INTERRUPT] = { true, INSTR_FMT_IB },
[GET_LEN] = { true, INSTR_FMT_IX },
[MATCH_CLASS] = { true, INSTR_FMT_IB },