@@ -2158,6 +2158,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
21582158PyObject * container = SECOND ();
21592159next_instr -- ;
21602160if (_Py_Specialize_BinarySubscr (container , sub , next_instr ) < 0 ) {
2161+ next_instr ++ ;
21612162 goto error ;
21622163 }
21632164DISPATCH_SAME_OPARG ();
@@ -2323,6 +2324,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
23232324PyObject * container = SECOND ();
23242325next_instr -- ;
23252326if (_Py_Specialize_StoreSubscr (container , sub , next_instr ) < 0 ) {
2327+ next_instr ++ ;
23262328 goto error ;
23272329 }
23282330DISPATCH_SAME_OPARG ();
@@ -3056,6 +3058,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
30563058PyObject * name = GETITEM (names , oparg >>1 );
30573059next_instr -- ;
30583060if (_Py_Specialize_LoadGlobal (GLOBALS (), BUILTINS (), next_instr , name ) < 0 ) {
3061+ next_instr ++ ;
30593062 goto error ;
30603063 }
30613064DISPATCH_SAME_OPARG ();
@@ -3481,6 +3484,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
34813484PyObject * name = GETITEM (names , oparg );
34823485next_instr -- ;
34833486if (_Py_Specialize_LoadAttr (owner , next_instr , name ) < 0 ) {
3487+ next_instr ++ ;
34843488 goto error ;
34853489 }
34863490DISPATCH_SAME_OPARG ();
@@ -3590,6 +3594,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
35903594PyObject * name = GETITEM (names , oparg );
35913595next_instr -- ;
35923596if (_Py_Specialize_StoreAttr (owner , next_instr , name ) < 0 ) {
3597+ next_instr ++ ;
35933598 goto error ;
35943599 }
35953600DISPATCH_SAME_OPARG ();
@@ -4527,6 +4532,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
45274532PyObject * name = GETITEM (names , oparg );
45284533next_instr -- ;
45294534if (_Py_Specialize_LoadMethod (owner , next_instr , name ) < 0 ) {
4535+ next_instr ++ ;
45304536 goto error ;
45314537 }
45324538DISPATCH_SAME_OPARG ();
@@ -4801,6 +4807,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
48014807int err = _Py_Specialize_Precall (callable , next_instr , nargs ,
48024808call_shape .kwnames , oparg );
48034809if (err < 0 ) {
4810+ next_instr ++ ;
48044811 goto error ;
48054812 }
48064813DISPATCH_SAME_OPARG ();
@@ -4822,6 +4829,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
48224829int err = _Py_Specialize_Call (callable , next_instr , nargs ,
48234830call_shape .kwnames );
48244831if (err < 0 ) {
4832+ next_instr ++ ;
48254833 goto error ;
48264834 }
48274835DISPATCH_SAME_OPARG ();
@@ -5184,16 +5192,16 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
51845192PyObject * list = SECOND ();
51855193DEOPT_IF (!PyList_Check (list ), PRECALL );
51865194STAT_INC (PRECALL , hit );
5187- // PRECALL + CALL + POP_TOP
5188- JUMPBY (INLINE_CACHE_ENTRIES_PRECALL + 1 + INLINE_CACHE_ENTRIES_CALL + 1 );
5189- assert (_Py_OPCODE (next_instr [-1 ]) == POP_TOP );
51905195PyObject * arg = POP ();
51915196if (_PyList_AppendTakeRef ((PyListObject * )list , arg ) < 0 ) {
51925197 goto error ;
51935198 }
51945199STACK_SHRINK (2 );
51955200Py_DECREF (list );
51965201Py_DECREF (callable );
5202+ // PRECALL + CALL + POP_TOP
5203+ JUMPBY (INLINE_CACHE_ENTRIES_PRECALL + 1 + INLINE_CACHE_ENTRIES_CALL + 1 );
5204+ assert (_Py_OPCODE (next_instr [-1 ]) == POP_TOP );
51975205DISPATCH ();
51985206 }
51995207
0 commit comments