mirror of https://github.com/python/cpython
gh-87849: fix SEND specialization family definition (GH-104268)
This commit is contained in:
parent
e629ab6adf
commit
1670729383
|
@ -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
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue