gh-130574: renumber RESUME opcode from 149 to 128 (GH-130685)

This commit is contained in:
Tomasz Pytel 2025-03-06 03:59:36 -05:00 committed by GitHub
parent e4a60248b0
commit aeb2327386
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 243 additions and 241 deletions

View file

@ -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