summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-05-30 13:11:22 (GMT)
committerPetr Viktorin <encukou@gmail.com>2019-05-30 13:11:22 (GMT)
commit37788bc23f6f1ed0362b9b3b248daf296c024849 (patch)
treeadfc68a022f5e0ca5c06adf47d35292d802b5e77 /Objects
parent6d0b7470a4738a403ef48cfd50d9447e0f32f00c (diff)
downloadcpython-37788bc23f6f1ed0362b9b3b248daf296c024849.zip
cpython-37788bc23f6f1ed0362b9b3b248daf296c024849.tar.gz
cpython-37788bc23f6f1ed0362b9b3b248daf296c024849.tar.bz2
bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/call.c10
-rw-r--r--Objects/descrobject.c8
-rw-r--r--Objects/funcobject.c2
-rw-r--r--Objects/methodobject.c2
4 files changed, 11 insertions, 11 deletions
diff --git a/Objects/call.c b/Objects/call.c
index 55dfc52..acd1f26 100644
--- a/Objects/call.c
+++ b/Objects/call.c
@@ -374,8 +374,8 @@ _PyFunction_FastCallDict(PyObject *func, PyObject *const *args, Py_ssize_t nargs
PyObject *
-_PyFunction_FastCallKeywords(PyObject *func, PyObject* const* stack,
- size_t nargsf, PyObject *kwnames)
+_PyFunction_Vectorcall(PyObject *func, PyObject* const* stack,
+ size_t nargsf, PyObject *kwnames)
{
PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
PyObject *globals = PyFunction_GET_GLOBALS(func);
@@ -714,9 +714,9 @@ exit:
PyObject *
-_PyCFunction_FastCallKeywords(PyObject *func,
- PyObject *const *args, size_t nargsf,
- PyObject *kwnames)
+_PyCFunction_Vectorcall(PyObject *func,
+ PyObject *const *args, size_t nargsf,
+ PyObject *kwnames)
{
PyObject *result;
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 7590185..3aaeaa6 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -264,9 +264,9 @@ methoddescr_call(PyMethodDescrObject *descr, PyObject *args, PyObject *kwargs)
// same to methoddescr_call(), but use FASTCALL convention.
PyObject *
-_PyMethodDescr_FastCallKeywords(PyObject *descrobj,
- PyObject *const *args, size_t nargsf,
- PyObject *kwnames)
+_PyMethodDescr_Vectorcall(PyObject *descrobj,
+ PyObject *const *args, size_t nargsf,
+ PyObject *kwnames)
{
assert(Py_TYPE(descrobj) == &PyMethodDescr_Type);
PyMethodDescrObject *descr = (PyMethodDescrObject *)descrobj;
@@ -756,7 +756,7 @@ PyDescr_NewMethod(PyTypeObject *type, PyMethodDef *method)
type, method->ml_name);
if (descr != NULL) {
descr->d_method = method;
- descr->vectorcall = &_PyMethodDescr_FastCallKeywords;
+ descr->vectorcall = _PyMethodDescr_Vectorcall;
}
return (PyObject *)descr;
}
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index 2b1f42d..6f5b5d2 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -36,7 +36,7 @@ PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname
op->func_defaults = NULL; /* No default arguments */
op->func_kwdefaults = NULL; /* No keyword only defaults */
op->func_closure = NULL;
- op->vectorcall = _PyFunction_FastCallKeywords;
+ op->vectorcall = _PyFunction_Vectorcall;
consts = ((PyCodeObject *)code)->co_consts;
if (PyTuple_Size(consts) >= 1) {
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 76497c9..544baee 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -52,7 +52,7 @@ PyCFunction_NewEx(PyMethodDef *ml, PyObject *self, PyObject *module)
op->vectorcall = NULL;
}
else {
- op->vectorcall = &_PyCFunction_FastCallKeywords;
+ op->vectorcall = _PyCFunction_Vectorcall;
}
_PyObject_GC_TRACK(op);
return (PyObject *)op;