mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
GH-126599: Remove the "counter" optimizer/executor (GH-126853)
This commit is contained in:
parent
27494dd9ad
commit
b44ff6d0df
13 changed files with 97 additions and 353 deletions
10
Python/executor_cases.c.h
generated
10
Python/executor_cases.c.h
generated
|
@ -6209,16 +6209,6 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _INTERNAL_INCREMENT_OPT_COUNTER: {
|
||||
_PyStackRef opt;
|
||||
opt = stack_pointer[-1];
|
||||
_PyCounterOptimizerObject *exe = (_PyCounterOptimizerObject *)PyStackRef_AsPyObjectBorrow(opt);
|
||||
exe->count++;
|
||||
stack_pointer += -1;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
}
|
||||
|
||||
case _DYNAMIC_EXIT: {
|
||||
PyObject *exit_p = (PyObject *)CURRENT_OPERAND0();
|
||||
tstate->previous_executor = (PyObject *)current_executor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue