mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-87849: fix SEND specialization family definition (GH-104268)
This commit is contained in:
parent
e629ab6adf
commit
1670729383
3 changed files with 177 additions and 176 deletions
|
@ -813,7 +813,7 @@ dummy_func(
|
|||
PREDICT(LOAD_CONST);
|
||||
}
|
||||
|
||||
family(for_iter, INLINE_CACHE_ENTRIES_FOR_ITER) = {
|
||||
family(send, INLINE_CACHE_ENTRIES_SEND) = {
|
||||
SEND,
|
||||
SEND_GEN,
|
||||
};
|
||||
|
@ -866,7 +866,7 @@ dummy_func(
|
|||
Py_DECREF(v);
|
||||
}
|
||||
|
||||
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
|
||||
inst(SEND_GEN, (unused/1, receiver, v -- receiver, unused)) {
|
||||
PyGenObject *gen = (PyGenObject *)receiver;
|
||||
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
|
||||
Py_TYPE(gen) != &PyCoro_Type, SEND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue