diff options
author | Mark Shannon <mark@hotpy.org> | 2023-01-16 12:35:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 12:35:21 +0000 |
commit | 7b14c2ef194b6eed79670aa9d7e29ab8e2256a56 (patch) | |
tree | 794188d49a9f359cfa7663c25be587634f070f22 /Python/compile.c | |
parent | b1a74a182d8762bda51838401ac92b6ebad9632a (diff) | |
download | cpython-git-7b14c2ef194b6eed79670aa9d7e29ab8e2256a56.tar.gz |
GH-100982: Add `COMPARE_AND_BRANCH` instruction (GH-100983)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index c0177fbf3e..f98892ec5f 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1195,6 +1195,9 @@ stack_effect(int opcode, int oparg, int jump) case POP_JUMP_IF_TRUE: return -1; + case COMPARE_AND_BRANCH: + return -2; + case LOAD_GLOBAL: return (oparg & 1) + 1; |