Skip to content

Commit

Permalink
pythongh-87849: fix SEND specialization family definition
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed May 7, 2023
1 parent 7a7eaff commit 6b0d946
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 176 deletions.
4 changes: 2 additions & 2 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ dummy_func(
PREDICT(LOAD_CONST);
}

family(for_iter, INLINE_CACHE_ENTRIES_FOR_ITER) = {
family(send, INLINE_CACHE_ENTRIES_SEND) = {
SEND,
SEND_GEN,
};
Expand Down Expand Up @@ -860,7 +860,7 @@ dummy_func(
Py_DECREF(v);
}

inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
inst(SEND_GEN, (unused/1, receiver, v -- receiver, retval)) {
PyGenObject *gen = (PyGenObject *)receiver;
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
Py_TYPE(gen) != &PyCoro_Type, SEND);
Expand Down
Loading

0 comments on commit 6b0d946

Please sign in to comment.