aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-08-23 10:46:03 +0100
committerGitHub <noreply@github.com>2024-08-23 10:46:03 +0100
commit0b0f7befaddb2b5eff2811398a0f0d4604a82a90 (patch)
tree485a626615817be27498e03f56f7c631838f40de /Python/executor_cases.c.h
parent5fce482c9a9d18d36c8177bdd0028cd2fef9f09f (diff)
downloadcpython-0b0f7befaddb2b5eff2811398a0f0d4604a82a90.tar.gz
cpython-0b0f7befaddb2b5eff2811398a0f0d4604a82a90.zip
GH-123232: Fix "not specialized" stats (GH-123236)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 4274d51b3fa..8726adeeead 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -797,6 +797,7 @@
PyObject *slice = _PyBuildSlice_ConsumeRefs(PyStackRef_AsPyObjectSteal(start),
PyStackRef_AsPyObjectSteal(stop));
PyObject *res_o;
+ OPCODE_DEFERRED_INC(BINARY_SLICE);
// Can't use ERROR_IF() here, because we haven't
// DECREF'ed container yet, and we still own slice.
if (slice == NULL) {
@@ -826,6 +827,7 @@
v = stack_pointer[-4];
PyObject *slice = _PyBuildSlice_ConsumeRefs(PyStackRef_AsPyObjectSteal(start),
PyStackRef_AsPyObjectSteal(stop));
+ OPCODE_DEFERRED_INC(STORE_SLICE);
int err;
if (slice == NULL) {
err = 1;