GH-126599: Remove the "counter" optimizer/executor (GH-126853)

This commit is contained in:
Xuanteng Huang 2025-01-17 07:57:04 +08:00 committed by GitHub
parent 27494dd9ad
commit b44ff6d0df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 97 additions and 353 deletions

View file

@ -5076,13 +5076,6 @@ dummy_func(
DECREF_INPUTS();
}
/* Internal -- for testing executors */
op(_INTERNAL_INCREMENT_OPT_COUNTER, (opt --)) {
_PyCounterOptimizerObject *exe = (_PyCounterOptimizerObject *)PyStackRef_AsPyObjectBorrow(opt);
exe->count++;
DEAD(opt);
}
tier2 op(_DYNAMIC_EXIT, (exit_p/4 --)) {
tstate->previous_executor = (PyObject *)current_executor;
_PyExitData *exit = (_PyExitData *)exit_p;