Skip to content

Commit 798440d

Browse files
asvetlovclaude
andcommitted
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

‎Include/internal/pycore_opcode_metadata.h‎

Lines changed: 49 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Include/internal/pycore_uop_ids.h‎

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Include/opcode_ids.h‎

Lines changed: 79 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Lib/_opcode_metadata.py‎

Lines changed: 85 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)