diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-05 11:06:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 11:06:22 (GMT) |
commit | 32091df41ce6e3a71df2cf37dc74b728c0d885f2 (patch) | |
tree | 0504c15f15a9ba83d08e480cc33a801cc648681d /Objects | |
parent | 6c6e0408a663c1f53dad403f54a18d444da39cb7 (diff) | |
download | cpython-32091df41ce6e3a71df2cf37dc74b728c0d885f2.zip cpython-32091df41ce6e3a71df2cf37dc74b728c0d885f2.tar.gz cpython-32091df41ce6e3a71df2cf37dc74b728c0d885f2.tar.bz2 |
bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/frameobject.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index fe374bf..c257c0a 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -207,7 +207,6 @@ mark_stacks(PyCodeObject *code_obj, int len) case JUMP_IF_TRUE_OR_POP: case POP_JUMP_IF_FALSE: case POP_JUMP_IF_TRUE: - case JUMP_IF_NOT_EG_MATCH: { int64_t target_stack; int j = get_arg(code, i); @@ -215,13 +214,8 @@ mark_stacks(PyCodeObject *code_obj, int len) if (stacks[j] == UNINITIALIZED && j < i) { todo = 1; } - if (opcode == JUMP_IF_NOT_EG_MATCH) - { - next_stack = pop_value(pop_value(next_stack)); - target_stack = next_stack; - } - else if (opcode == JUMP_IF_FALSE_OR_POP || - opcode == JUMP_IF_TRUE_OR_POP) + if (opcode == JUMP_IF_FALSE_OR_POP || + opcode == JUMP_IF_TRUE_OR_POP) { target_stack = next_stack; next_stack = pop_value(next_stack); |