summaryrefslogtreecommitdiffstats
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-01-06 14:47:57 (GMT)
committerGitHub <noreply@github.com>2023-01-06 14:47:57 (GMT)
commit78068126a1f2172ff61a0871ba43d8530bc73905 (patch)
treeaa42d4c6d64130587e2f62d61389496693de86e4 /Python/generated_cases.c.h
parent659c2607f5b44a8a18a0840d1ac39df8a3219dd5 (diff)
downloadcpython-78068126a1f2172ff61a0871ba43d8530bc73905.zip
cpython-78068126a1f2172ff61a0871ba43d8530bc73905.tar.gz
cpython-78068126a1f2172ff61a0871ba43d8530bc73905.tar.bz2
GH-99005: More intrinsics (GH-100774)
* Remove UNARY_POSITIVE, LIST_TO_TUPLE and ASYNC_GEN_WRAP, replacing them with intrinsics.
Diffstat (limited to 'Python/generated_cases.c.h')
-rw-r--r--Python/generated_cases.c.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 0d4dad4..beb5bec 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -202,16 +202,6 @@
DISPATCH();
}
- TARGET(UNARY_POSITIVE) {
- PyObject *value = PEEK(1);
- PyObject *res;
- res = PyNumber_Positive(value);
- Py_DECREF(value);
- if (res == NULL) goto pop_1_error;
- POKE(1, res);
- DISPATCH();
- }
-
TARGET(UNARY_NEGATIVE) {
PyObject *value = PEEK(1);
PyObject *res;
@@ -921,17 +911,6 @@
DISPATCH();
}
- TARGET(ASYNC_GEN_WRAP) {
- PyObject *v = PEEK(1);
- PyObject *w;
- assert(frame->f_code->co_flags & CO_ASYNC_GENERATOR);
- w = _PyAsyncGenValueWrapperNew(v);
- Py_DECREF(v);
- if (w == NULL) goto pop_1_error;
- POKE(1, w);
- DISPATCH();
- }
-
TARGET(YIELD_VALUE) {
PyObject *retval = PEEK(1);
// NOTE: It's important that YIELD_VALUE never raises an exception!
@@ -1566,16 +1545,6 @@
DISPATCH();
}
- TARGET(LIST_TO_TUPLE) {
- PyObject *list = PEEK(1);
- PyObject *tuple;
- tuple = PyList_AsTuple(list);
- Py_DECREF(list);
- if (tuple == NULL) goto pop_1_error;
- POKE(1, tuple);
- DISPATCH();
- }
-
TARGET(LIST_EXTEND) {
PyObject *iterable = PEEK(1);
PyObject *list = PEEK(oparg + 1); // iterable is still on the stack