gh-161875: Push NULL and None in GET_AWAITABLE (#161876)
* Push NULL and None in GET_AWAITABLE
Every await site compiled to GET_AWAITABLE; PUSH_NULL; LOAD_CONST None;
SEND. GET_AWAITABLE is always followed by that pair, so let it push
(iter, NULL, None) itself. `await f()` now compiles to
CALL; GET_AWAITABLE; SEND, saving two dispatches per await.
The tier-2 optimizer gets an override so the NULL and None slots are
known constants.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add NEWS entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
14 files changed