mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Manually override bytecode definition in optimizer, to avoid build error (GH-122316)
This commit is contained in:
parent
c557ae97d6
commit
1ca99ed240
2 changed files with 17 additions and 4 deletions
13
Python/optimizer_cases.c.h
generated
13
Python/optimizer_cases.c.h
generated
|
@ -1599,14 +1599,19 @@
|
|||
}
|
||||
|
||||
case _MAYBE_EXPAND_METHOD: {
|
||||
_Py_UopsSymbol **args;
|
||||
_Py_UopsSymbol *self_or_null;
|
||||
_Py_UopsSymbol *callable;
|
||||
_Py_UopsSymbol *func;
|
||||
_Py_UopsSymbol *maybe_self;
|
||||
_Py_UopsSymbol **args;
|
||||
args = &stack_pointer[-oparg];
|
||||
self_or_null = stack_pointer[-1 - oparg];
|
||||
callable = stack_pointer[-2 - oparg];
|
||||
(void)callable;
|
||||
(void)self_or_null;
|
||||
(void)args;
|
||||
func = sym_new_not_null(ctx);
|
||||
maybe_self = sym_new_not_null(ctx);
|
||||
for (int _i = oparg; --_i >= 0;) {
|
||||
args[_i] = sym_new_not_null(ctx);
|
||||
}
|
||||
stack_pointer[-2 - oparg] = func;
|
||||
stack_pointer[-1 - oparg] = maybe_self;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue