aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorXuanteng Huang <44627253+xuantengh@users.noreply.github.com>2025-01-17 07:57:04 +0800
committerGitHub <noreply@github.com>2025-01-16 15:57:04 -0800
commitb44ff6d0df9ec2d60be63e5a106ca079464ece52 (patch)
treeb05b6d496f282a9884f5ee327d5d522e9a06c712 /Python/executor_cases.c.h
parent27494dd9ad6032c29e273cd7f45c204c00d6512c (diff)
downloadcpython-b44ff6d0df9ec2d60be63e5a106ca079464ece52.tar.gz
cpython-b44ff6d0df9ec2d60be63e5a106ca079464ece52.zip
GH-126599: Remove the "counter" optimizer/executor (GH-126853)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index ad825881c82..e2eaca2c90f 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -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;