diff options
author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2022-03-25 16:13:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 16:13:19 (GMT) |
commit | cca43b7d64f47ea921d0f7a347ae1a839c5463c3 (patch) | |
tree | ed0908e033243be580acbee24140225ab5887ccf /Include | |
parent | d7163bb35d1ed46bde9affcd4eb267dfd0b703dd (diff) | |
download | cpython-cca43b7d64f47ea921d0f7a347ae1a839c5463c3.zip cpython-cca43b7d64f47ea921d0f7a347ae1a839c5463c3.tar.gz cpython-cca43b7d64f47ea921d0f7a347ae1a839c5463c3.tar.bz2 |
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
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_code.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 82dc9e4..0f6613b 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -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, |