◐ Shell
clean mode source ↗

gh-106290: Fix edge cases around uops by gvanrossum · Pull Request #106319 · python/cpython

added 6 commits

July 1, 2023 13:19
- Longer traces
- Explain reason for ending a trace
- Support STORE_FAST_LOAD_FAST, STORE_FAST_STORE_FAST
- Add deps on pycore_uops.h
This gives us LOAD_FAST_CHECK, LOAD_CLOSURE, and DELETE_FAST.
This doesn't work right yet, alas.
If an error occurs in the first uop, the lineno is -1.
The trick is that EXIT_TRACE must decrement prev_instr.

@gvanrossum

@gvanrossum

(I just did that to be able to benchmark it and run the tests.)

This reverts commit 5b85a49.

brandtbucher

Use it to `#undef DPRINTF` instead (which also depends on a variable in this scope).

@gvanrossum