mirror of https://github.com/python/cpython.git
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);
|
PREDICT(LOAD_CONST);
|
||||||
}
|
}
|
||||||
|
|
||||||
family(for_iter, INLINE_CACHE_ENTRIES_FOR_ITER) = {
|
family(send, INLINE_CACHE_ENTRIES_SEND) = {
|
||||||
SEND,
|
SEND,
|
||||||
SEND_GEN,
|
SEND_GEN,
|
||||||
};
|
};
|
||||||
|
@ -866,7 +866,7 @@ dummy_func(
|
||||||
Py_DECREF(v);
|
Py_DECREF(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
inst(SEND_GEN, (unused/1, receiver, v -- receiver)) {
|
inst(SEND_GEN, (unused/1, receiver, v -- receiver, unused)) {
|
||||||
PyGenObject *gen = (PyGenObject *)receiver;
|
PyGenObject *gen = (PyGenObject *)receiver;
|
||||||
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
|
DEOPT_IF(Py_TYPE(gen) != &PyGen_Type &&
|
||||||
Py_TYPE(gen) != &PyCoro_Type, SEND);
|
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:
|
case SEND:
|
||||||
return 2;
|
return 2;
|
||||||
case SEND_GEN:
|
case SEND_GEN:
|
||||||
return 1;
|
return 2;
|
||||||
case INSTRUMENTED_YIELD_VALUE:
|
case INSTRUMENTED_YIELD_VALUE:
|
||||||
return 1;
|
return 1;
|
||||||
case YIELD_VALUE:
|
case YIELD_VALUE:
|
||||||
|
|
Loading…
Reference in New Issue