PY-57113 Use call instruction offset instead of offset of function name load instruction

To understand if the function has already been called, it is essential to use the actual call instruction offset instead of just the offset of the instruction that loads the function name to the stack.

GitOrigin-RevId: daee548c9eaa4c041a83756ba3e3a6ecfb3b3ce7
This commit is contained in:
Andrey Lisin
2024-01-29 15:53:38 +01:00
committed by intellij-monorepo-bot
parent 3c29ea6720
commit f0ee8394f0
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ def get_stepping_variants(code):
tos.opcode,
tos.arg,
tos.argval,
tos.offset,
instruction.offset,
tos.positions.lineno
)
elif _is_binary_opname(instruction.opname):

View File

@@ -73,7 +73,7 @@ def get_stepping_variants(code):
tos.opcode,
tos.arg,
tos.argval,
tos.offset,
instruction.offset,
curr_line
)
elif _is_binary_opname(instruction.opname):