mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182)
This commit is contained in:
parent
6e3cc72afe
commit
c7f5708714
18 changed files with 562 additions and 758 deletions
|
@ -512,9 +512,8 @@ def _get_instructions_bytes(code, varname_from_oparg=None,
|
|||
for i in range(size):
|
||||
offset += 2
|
||||
# Only show the fancy argrepr for a CACHE instruction when it's
|
||||
# the first entry for a particular cache value and the
|
||||
# instruction using it is actually quickened:
|
||||
if i == 0 and op != deop:
|
||||
# the first entry for a particular cache value:
|
||||
if i == 0:
|
||||
data = code[offset: offset + 2 * size]
|
||||
argrepr = f"{name}: {int.from_bytes(data, sys.byteorder)}"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue