diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-15 19:19:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 19:19:24 (GMT) |
commit | ea2ae026078b328ddeab060940568a4d3bf1b417 (patch) | |
tree | fba97e66d949767124286ee10bfd64fc56e60a99 /Lib/opcode.py | |
parent | 5d421d7342fc0d278c129c05bea7028430e94a4e (diff) | |
download | cpython-ea2ae026078b328ddeab060940568a4d3bf1b417.zip cpython-ea2ae026078b328ddeab060940568a4d3bf1b417.tar.gz cpython-ea2ae026078b328ddeab060940568a4d3bf1b417.tar.bz2 |
gh-91276: Make JUMP_IF_TRUE_OR_POP/JUMP_IF_FALSE_OR_POP relative (GH-32215)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index ee9effb..9ee0683 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -131,8 +131,8 @@ hascompare.append(107) name_op('IMPORT_NAME', 108) # Index in name list name_op('IMPORT_FROM', 109) # Index in name list jrel_op('JUMP_FORWARD', 110) # Number of words to skip -jabs_op('JUMP_IF_FALSE_OR_POP', 111) # Target byte offset from beginning of code -jabs_op('JUMP_IF_TRUE_OR_POP', 112) # "" +jrel_op('JUMP_IF_FALSE_OR_POP', 111) # Number of words to skip +jrel_op('JUMP_IF_TRUE_OR_POP', 112) # "" jrel_op('POP_JUMP_FORWARD_IF_FALSE', 114) jrel_op('POP_JUMP_FORWARD_IF_TRUE', 115) name_op('LOAD_GLOBAL', 116, 5) # Index in name list |