Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
37788bc2
Kaydet (Commit)
37788bc2
authored
May 30, 2019
tarafından
Jeroen Demeyer
Kaydeden (comit)
Petr Viktorin
May 30, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)
üst
6d0b7470
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
descrobject.h
Include/descrobject.h
+1
-1
funcobject.h
Include/funcobject.h
+1
-1
methodobject.h
Include/methodobject.h
+1
-1
call.c
Objects/call.c
+5
-5
descrobject.c
Objects/descrobject.c
+4
-4
funcobject.c
Objects/funcobject.c
+1
-1
methodobject.c
Objects/methodobject.c
+1
-1
ceval.c
Python/ceval.c
+4
-4
libpython.py
Tools/gdb/libpython.py
+1
-1
No files found.
Include/descrobject.h
Dosyayı görüntüle @
37788bc2
...
...
@@ -92,7 +92,7 @@ PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
struct
PyGetSetDef
*
);
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
PyObject
*
)
_PyMethodDescr_
FastCallKeywords
(
PyAPI_FUNC
(
PyObject
*
)
_PyMethodDescr_
Vectorcall
(
PyObject
*
descrobj
,
PyObject
*
const
*
args
,
size_t
nargsf
,
PyObject
*
kwnames
);
PyAPI_FUNC
(
PyObject
*
)
PyDescr_NewWrapper
(
PyTypeObject
*
,
struct
wrapperbase
*
,
void
*
);
...
...
Include/funcobject.h
Dosyayı görüntüle @
37788bc2
...
...
@@ -66,7 +66,7 @@ PyAPI_FUNC(PyObject *) _PyFunction_FastCallDict(
Py_ssize_t
nargs
,
PyObject
*
kwargs
);
PyAPI_FUNC
(
PyObject
*
)
_PyFunction_
FastCallKeywords
(
PyAPI_FUNC
(
PyObject
*
)
_PyFunction_
Vectorcall
(
PyObject
*
func
,
PyObject
*
const
*
stack
,
size_t
nargsf
,
...
...
Include/methodobject.h
Dosyayı görüntüle @
37788bc2
...
...
@@ -47,7 +47,7 @@ PyAPI_FUNC(PyObject *) _PyCFunction_FastCallDict(PyObject *func,
Py_ssize_t
nargs
,
PyObject
*
kwargs
);
PyAPI_FUNC
(
PyObject
*
)
_PyCFunction_
FastCallKeywords
(
PyObject
*
func
,
PyAPI_FUNC
(
PyObject
*
)
_PyCFunction_
Vectorcall
(
PyObject
*
func
,
PyObject
*
const
*
stack
,
size_t
nargsf
,
PyObject
*
kwnames
);
...
...
Objects/call.c
Dosyayı görüntüle @
37788bc2
...
...
@@ -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
;
...
...
Objects/descrobject.c
Dosyayı görüntüle @
37788bc2
...
...
@@ -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
;
}
...
...
Objects/funcobject.c
Dosyayı görüntüle @
37788bc2
...
...
@@ -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
)
{
...
...
Objects/methodobject.c
Dosyayı görüntüle @
37788bc2
...
...
@@ -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
;
...
...
Python/ceval.c
Dosyayı görüntüle @
37788bc2
...
...
@@ -4815,7 +4815,7 @@ trace_call_function(PyThreadState *tstate,
{
PyObject
*
x
;
if
(
PyCFunction_Check
(
func
))
{
C_TRACE
(
x
,
_PyCFunction_
FastCallKeywords
(
func
,
args
,
nargs
,
kwnames
));
C_TRACE
(
x
,
_PyCFunction_
Vectorcall
(
func
,
args
,
nargs
,
kwnames
));
return
x
;
}
else
if
(
Py_TYPE
(
func
)
==
&
PyMethodDescr_Type
&&
nargs
>
0
)
{
...
...
@@ -4831,9 +4831,9 @@ trace_call_function(PyThreadState *tstate,
if
(
func
==
NULL
)
{
return
NULL
;
}
C_TRACE
(
x
,
_PyCFunction_
FastCallKeywords
(
func
,
args
+
1
,
nargs
-
1
,
kwnames
));
C_TRACE
(
x
,
_PyCFunction_
Vectorcall
(
func
,
args
+
1
,
nargs
-
1
,
kwnames
));
Py_DECREF
(
func
);
return
x
;
}
...
...
Tools/gdb/libpython.py
Dosyayı görüntüle @
37788bc2
...
...
@@ -1564,7 +1564,7 @@ class Frame(object):
return
False
if
caller
in
(
'_PyCFunction_FastCallDict'
,
'_PyCFunction_
FastCallKeywords
'
,
'_PyCFunction_
Vectorcall
'
,
'cfunction_call_varargs'
):
arg_name
=
'func'
# Within that frame:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment