mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Fix stats for STORE_ATTR specialization. (GH-27708)
This commit is contained in:
parent
d5c217475c
commit
c7ea1e3dce
1 changed files with 2 additions and 0 deletions
|
|
@ -2767,6 +2767,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
|
||||||
|
|
||||||
case TARGET(STORE_ATTR): {
|
case TARGET(STORE_ATTR): {
|
||||||
PREDICTED(STORE_ATTR);
|
PREDICTED(STORE_ATTR);
|
||||||
|
STAT_INC(STORE_ATTR, unquickened);
|
||||||
PyObject *name = GETITEM(names, oparg);
|
PyObject *name = GETITEM(names, oparg);
|
||||||
PyObject *owner = TOP();
|
PyObject *owner = TOP();
|
||||||
PyObject *v = SECOND();
|
PyObject *v = SECOND();
|
||||||
|
|
@ -3503,6 +3504,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
|
||||||
STAT_INC(STORE_ATTR, deferred);
|
STAT_INC(STORE_ATTR, deferred);
|
||||||
cache->adaptive.counter--;
|
cache->adaptive.counter--;
|
||||||
oparg = cache->adaptive.original_oparg;
|
oparg = cache->adaptive.original_oparg;
|
||||||
|
STAT_DEC(STORE_ATTR, unquickened);
|
||||||
JUMP_TO_INSTRUCTION(STORE_ATTR);
|
JUMP_TO_INSTRUCTION(STORE_ATTR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue