diff options
author | Mark Shannon <mark@hotpy.org> | 2021-04-01 15:00:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 15:00:31 (GMT) |
commit | fcb55c0037baab6f98f91ee38ce84b6f874f034a (patch) | |
tree | 29e1499f2f77ad8a4c76d5484517f46ac4fe8313 /Python/compile.c | |
parent | 2ac0515027699b5694d9a6ff40f1ddaba82c74c2 (diff) | |
download | cpython-fcb55c0037baab6f98f91ee38ce84b6f874f034a.zip cpython-fcb55c0037baab6f98f91ee38ce84b6f874f034a.tar.gz cpython-fcb55c0037baab6f98f91ee38ce84b6f874f034a.tar.bz2 |
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
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index bed2a1c..308d686 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -6398,7 +6398,6 @@ assemble_jump_offsets(struct assembler *a, struct compiler *c) if (is_relative_jump(instr)) { instr->i_oparg -= bsize; } - instr->i_oparg *= sizeof(_Py_CODEUNIT); if (instrsize(instr->i_oparg) != isize) { extended_arg_recompile = 1; } |