bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)
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 @@
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 @@
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 @@
// 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 @@
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 @@
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 @@
op->vectorcall = NULL;
}
else {
- op->vectorcall = &_PyCFunction_FastCallKeywords;
+ op->vectorcall = _PyCFunction_Vectorcall;
}
_PyObject_GC_TRACK(op);
return (PyObject *)op;