aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-10-03 15:37:21 -0700
committerGitHub <noreply@github.com>2023-10-03 22:37:21 +0000
commit625ecbe92eb69d2850c2e6dbe9538e9b1a098baa (patch)
tree95234975fc8ce7118483dc5ced844d5d4827fd1a /Python/executor_cases.c.h
parenta376a72bd92cd7c9930467dd1aba40045fb75e3b (diff)
downloadcpython-625ecbe92eb69d2850c2e6dbe9538e9b1a098baa.tar.gz
cpython-625ecbe92eb69d2850c2e6dbe9538e9b1a098baa.zip
gh-109979: Unify _GUARD_TYPE_VERSION{,_STORE} (#110301)
Now the target for `DEOPT_IF()` is auto-filled, we don't need a separate `_GUARD_TYPE_VERSION_STORE` uop.
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 662de57553f..bbdc508a036 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -1761,16 +1761,6 @@
break;
}
- case _GUARD_TYPE_VERSION_STORE: {
- PyObject *owner;
- owner = stack_pointer[-1];
- uint32_t type_version = (uint32_t)operand;
- PyTypeObject *tp = Py_TYPE(owner);
- assert(type_version != 0);
- DEOPT_IF(tp->tp_version_tag != type_version, _GUARD_TYPE_VERSION_STORE);
- break;
- }
-
case _STORE_ATTR_SLOT: {
PyObject *owner;
PyObject *value;