Repository navigation
Commit 798440d
Add specialized forms for awaited calls of Python functions
CALL_PY_EXACT_ARGS_AWAITED, CALL_BOUND_METHOD_EXACT_ARGS_AWAITED,
CALL_PY_GENERAL_AWAITED, CALL_BOUND_METHOD_GENERAL_AWAITED,
CALL_KW_PY_AWAITED and CALL_KW_BOUND_METHOD_AWAITED are the plain forms
with CALL_AWAITED cleared from oparg first (_CLEAR_CALL_AWAITED), so they
share all other uops, and with the coroutine body started lazily
(_START_LAZY_CORO). Tier two clears CALL_AWAITED when translating and
starts the coroutine eagerly.
The recording uops of the CALL and CALL_KW families mask CALL_AWAITED
too: they also run for awaited call sites.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent c7582bb commit 798440d
16 files changed
Lines changed: 2158 additions & 249 deletions
File tree
- Include
- internal
- Lib
- test
- Modules/_testinternalcapi
- Python
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments