[3.8] bpo-36974: separate vectorcall functions for each calling convention (GH-13781) (#14782)

This commit is contained in:
Jeroen Demeyer 2019-07-23 12:39:51 +02:00 committed by Łukasz Langa
parent 5dab5e7d24
commit bf8e82f976
10 changed files with 388 additions and 117 deletions

View file

@ -1563,9 +1563,8 @@ class Frame(object):
if not caller:
return False
if caller in ('_PyCFunction_FastCallDict',
'_PyCFunction_Vectorcall',
'cfunction_call_varargs'):
if (caller.startswith('cfunction_vectorcall_') or
caller == 'cfunction_call_varargs'):
arg_name = 'func'
# Within that frame:
# "func" is the local containing the PyObject* of the