mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-130574: renumber RESUME opcode from 149 to 128 (GH-130685)
This commit is contained in:
parent
e4a60248b0
commit
aeb2327386
10 changed files with 243 additions and 241 deletions
|
@ -1077,8 +1077,8 @@ def assign_opcodes(
|
|||
# This helps catch cases where we attempt to execute a cache.
|
||||
instmap["RESERVED"] = 17
|
||||
|
||||
# 149 is RESUME - it is hard coded as such in Tools/build/deepfreeze.py
|
||||
instmap["RESUME"] = 149
|
||||
# 128 is RESUME - it is hard coded as such in Tools/build/deepfreeze.py
|
||||
instmap["RESUME"] = 128
|
||||
|
||||
# This is an historical oddity.
|
||||
instmap["BINARY_OP_INPLACE_ADD_UNICODE"] = 3
|
||||
|
@ -1108,7 +1108,7 @@ def assign_opcodes(
|
|||
|
||||
# Specialized ops appear in their own section
|
||||
# Instrumented opcodes are at the end of the valid range
|
||||
min_internal = 150
|
||||
min_internal = instmap["RESUME"] + 1
|
||||
min_instrumented = 254 - (len(instrumented) - 1)
|
||||
assert min_internal + len(specialized) < min_instrumented
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue