mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
GH-122155: Track local variables between pops and pushes in cases generator (GH-122286)
This commit is contained in:
parent
46f5a4f9e1
commit
a9d56e38a0
13 changed files with 463 additions and 159 deletions
3
Python/optimizer_cases.c.h
generated
3
Python/optimizer_cases.c.h
generated
|
@ -753,7 +753,7 @@
|
|||
for (int i = 0; i < totalargs; i++) {
|
||||
values[i] = sym_new_unknown(ctx);
|
||||
}
|
||||
stack_pointer += (oparg >> 8) + (oparg & 0xFF);
|
||||
stack_pointer += (oparg & 0xFF) + (oparg >> 8);
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
break;
|
||||
}
|
||||
|
@ -1607,6 +1607,7 @@
|
|||
args = &stack_pointer[-oparg];
|
||||
self_or_null = stack_pointer[-1 - oparg];
|
||||
callable = stack_pointer[-2 - oparg];
|
||||
args = &stack_pointer[-oparg];
|
||||
(void)callable;
|
||||
(void)self_or_null;
|
||||
(void)args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue