mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-131798: JIT - Use sym_new_type
instead of sym_new_not_null
for _BUILD_STRING, _BUILD_SET (GH-132564)
Signed-off-by: Manjusaka <me@manjusaka.me>
This commit is contained in:
parent
8b4fd24ca5
commit
614d79231d
3 changed files with 12 additions and 2 deletions
4
Python/optimizer_cases.c.h
generated
4
Python/optimizer_cases.c.h
generated
|
@ -1032,7 +1032,7 @@
|
|||
|
||||
case _BUILD_STRING: {
|
||||
JitOptSymbol *str;
|
||||
str = sym_new_not_null(ctx);
|
||||
str = sym_new_type(ctx, &PyUnicode_Type);
|
||||
stack_pointer[-oparg] = str;
|
||||
stack_pointer += 1 - oparg;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
|
@ -1073,7 +1073,7 @@
|
|||
|
||||
case _BUILD_SET: {
|
||||
JitOptSymbol *set;
|
||||
set = sym_new_not_null(ctx);
|
||||
set = sym_new_type(ctx, &PySet_Type);
|
||||
stack_pointer[-oparg] = set;
|
||||
stack_pointer += 1 - oparg;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue