Repository navigation
Commit a8eb697
committed
Generalize the CALL async specializations to all generator kinds
Specialize calls of generator and async generator functions as well as
coroutine functions, and rename the opcodes from *_ASYNC to *_GEN:
CALL_PY_GEN_EXACT_ARGS, CALL_PY_GEN_GENERAL,
CALL_BOUND_METHOD_GEN_EXACT_ARGS, CALL_BOUND_METHOD_GEN_GENERAL,
CALL_KW_PY_GEN and CALL_KW_BOUND_METHOD_GEN.
Only require the code to start with RETURN_GENERATOR: the new frame is
left at the following instruction, as RETURN_GENERATOR leaves it, so
that instruction does not need to be checked.
_Py_MakeCoro now delegates to _PyGen_NewFromFunction(), which takes the
caller frame used to compute cr_origin.1 parent dbe037f commit a8eb697
20 files changed
Lines changed: 1029 additions & 929 deletions
File tree
- Include
- internal
- Lib
- test
- Modules/_testinternalcapi
- Objects
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
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.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments