@@ -4807,6 +4807,8 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4807
4807
4808
4808
PyObject * callable = SECOND ();
4809
4809
DEOPT_IF (callable != cache1 -> obj , CALL_FUNCTION );
4810
+ record_cache_hit (cache0 );
4811
+ STAT_INC (CALL_FUNCTION , hit );
4810
4812
4811
4813
Py_ssize_t len_i = PyObject_Length (TOP ());
4812
4814
if (len_i < 0 ) {
@@ -4819,8 +4821,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4819
4821
Py_DECREF (POP ());
4820
4822
Py_DECREF (callable );
4821
4823
SET_TOP (res );
4822
- record_cache_hit (cache0 );
4823
- STAT_INC (CALL_FUNCTION , hit );
4824
4824
if (res == NULL ) {
4825
4825
goto error ;
4826
4826
}
@@ -4837,6 +4837,8 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4837
4837
4838
4838
PyObject * callable = THIRD ();
4839
4839
DEOPT_IF (callable != cache1 -> obj , CALL_FUNCTION );
4840
+ record_cache_hit (cache0 );
4841
+ STAT_INC (CALL_FUNCTION , hit );
4840
4842
4841
4843
int retval = PyObject_IsInstance (SECOND (), TOP ());
4842
4844
if (retval < 0 ) {
@@ -4849,8 +4851,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
4849
4851
Py_DECREF (POP ());
4850
4852
Py_DECREF (POP ());
4851
4853
Py_DECREF (callable );
4852
- SET_TOP (res );
4853
- record_cache_hit (cache0 );
4854
4854
STAT_INC (CALL_FUNCTION , hit );
4855
4855
if (res == NULL ) {
4856
4856
goto error ;
0 commit comments