@@ -35,7 +35,6 @@ typedef struct {
35
35
uint8_t linked :1 ;
36
36
uint8_t chain_depth :6 ; // Must be big enough for MAX_CHAIN_DEPTH - 1.
37
37
bool warm ;
38
- uint8_t tos_cache ;
39
38
int16_t index ; // Index of ENTER_EXECUTOR (if code isn't NULL, below).
40
39
_PyBloomFilter bloom ;
41
40
_PyExecutorLinkListNode links ;
@@ -70,8 +69,7 @@ typedef struct {
70
69
71
70
typedef struct _PyExitData {
72
71
uint32_t target ;
73
- uint16_t index :12 ;
74
- uint16_t tos_cache :4 ;
72
+ uint16_t index ;
75
73
_Py_BackoffCounter temperature ;
76
74
struct _PyExecutorObject * executor ;
77
75
} _PyExitData ;
@@ -95,7 +93,7 @@ typedef struct _PyExecutorObject {
95
93
// Export for '_opcode' shared extension (JIT compiler).
96
94
PyAPI_FUNC (_PyExecutorObject * ) _Py_GetExecutor (PyCodeObject * code , int offset );
97
95
98
- void _Py_ExecutorInit (_PyExecutorObject * , const _PyBloomFilter * , int tos_cache );
96
+ void _Py_ExecutorInit (_PyExecutorObject * , const _PyBloomFilter * );
99
97
void _Py_ExecutorDetach (_PyExecutorObject * );
100
98
void _Py_BloomFilter_Init (_PyBloomFilter * );
101
99
void _Py_BloomFilter_Add (_PyBloomFilter * bloom , void * obj );
@@ -354,15 +352,15 @@ extern int _Py_uop_frame_pop(JitOptContext *ctx);
354
352
355
353
PyAPI_FUNC (PyObject * ) _Py_uop_symbols_test (PyObject * self , PyObject * ignored );
356
354
357
- PyAPI_FUNC (int ) _PyOptimizer_Optimize (_PyInterpreterFrame * frame , _Py_CODEUNIT * start , _PyExecutorObject * * exec_ptr , int chain_depth , int tos_cache );
355
+ PyAPI_FUNC (int ) _PyOptimizer_Optimize (_PyInterpreterFrame * frame , _Py_CODEUNIT * start , _PyExecutorObject * * exec_ptr , int chain_depth );
358
356
359
357
static inline _PyExecutorObject * _PyExecutor_FromExit (_PyExitData * exit )
360
358
{
361
359
_PyExitData * exit0 = exit - exit -> index ;
362
360
return (_PyExecutorObject * )(((char * )exit0 ) - offsetof(_PyExecutorObject , exits ));
363
361
}
364
362
365
- extern _PyExecutorObject * * _PyExecutor_GetColdExecutors (void );
363
+ extern _PyExecutorObject * _PyExecutor_GetColdExecutor (void );
366
364
367
365
PyAPI_FUNC (void ) _PyExecutor_ClearExit (_PyExitData * exit );
368
366
@@ -375,7 +373,7 @@ static inline int is_terminator(const _PyUOpInstruction *uop)
375
373
);
376
374
}
377
375
378
- extern void _PyExecutor_FreeColdExecutors (_PyExecutorObject * * cold );
376
+ extern void _PyExecutor_FreeColdExecutor (_PyExecutorObject * cold );
379
377
380
378
PyAPI_FUNC (int ) _PyDumpExecutors (FILE * out );
381
379
#ifdef _Py_TIER2
0 commit comments