mirror of
https://github.com/python/cpython.git
synced 2026-04-20 02:40:59 +00:00
gh-148171: Convert CALL_BUILTIN_CLASS to leave arguments on the stack (gh-148381)
This commit is contained in:
parent
9831dea3bf
commit
a71b043356
11 changed files with 87 additions and 60 deletions
|
|
@ -1364,6 +1364,10 @@ dummy_func(void) {
|
|||
callable = sym_new_not_null(ctx);
|
||||
}
|
||||
|
||||
op(_CALL_BUILTIN_CLASS, (callable, self_or_null, args[oparg] -- callable, self_or_null, args[oparg])) {
|
||||
callable = sym_new_not_null(ctx);
|
||||
}
|
||||
|
||||
op(_GUARD_CALLABLE_METHOD_DESCRIPTOR_O, (callable, self_or_null, args[oparg] -- callable, self_or_null, args[oparg])) {
|
||||
PyObject *callable_o = sym_get_const(ctx, callable);
|
||||
if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue