mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-47053: Reduce deoptimization in BINARY_OP_INPLACE_ADD_UNICODE (GH-31318)
* Don't deopt if refcounts are too big * Detect more at specialization time
This commit is contained in:
parent
d7163bb35d
commit
cca43b7d64
4 changed files with 11 additions and 7 deletions
|
@ -263,7 +263,7 @@ extern int _Py_Specialize_Call(PyObject *callable, _Py_CODEUNIT *instr,
|
|||
extern int _Py_Specialize_Precall(PyObject *callable, _Py_CODEUNIT *instr,
|
||||
int nargs, PyObject *kwnames, int oparg);
|
||||
extern void _Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
|
||||
int oparg);
|
||||
int oparg, PyObject **locals);
|
||||
extern void _Py_Specialize_CompareOp(PyObject *lhs, PyObject *rhs,
|
||||
_Py_CODEUNIT *instr, int oparg);
|
||||
extern void _Py_Specialize_UnpackSequence(PyObject *seq, _Py_CODEUNIT *instr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue