From fcb55c0037baab6f98f91ee38ce84b6f874f034a Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Thu, 1 Apr 2021 16:00:31 +0100 Subject: 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 --- Python/compile.c | 1 - 1 file changed, 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index bed2a1c944d..308d6866c7d 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; } -- cgit v1.2.3