]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally...
authorMark Shannon <mark@hotpy.org>
Thu, 1 Apr 2021 15:00:31 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 15:00:31 +0000 (16:00 +0100)
commitfcb55c0037baab6f98f91ee38ce84b6f874f034a
tree29e1499f2f77ad8a4c76d5484517f46ac4fe8313
parent2ac0515027699b5694d9a6ff40f1ddaba82c74c2
bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069)

* Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps.

* Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber
14 files changed:
Lib/dis.py
Lib/importlib/_bootstrap_external.py
Lib/test/test_dis.py
Misc/NEWS.d/next/Core and Builtins/2021-03-29-16-20-29.bpo-27129.BF03A5.rst [new file with mode: 0644]
Objects/codeobject.c
Objects/frameobject.c
Objects/genobject.c
Python/ceval.c
Python/compile.c
Python/importlib.h
Python/importlib_external.h
Python/importlib_zipimport.h
Python/traceback.c
Tools/gdb/libpython.py