gh-87849: fix SEND specialization family definition (GH-104268)

This commit is contained in:
Carl Meyer 2023-05-11 05:52:06 -06:00 committed by GitHub
parent e629ab6adf
commit 1670729383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 177 additions and 176 deletions

View File

@ -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);

File diff suppressed because it is too large Load Diff

View File

@ -512,7 +512,7 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) {
case SEND:
return 2;
case SEND_GEN:
return 1;
return 2;
case INSTRUMENTED_YIELD_VALUE:
return 1;
case YIELD_VALUE: