mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +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
|
@ -977,6 +977,14 @@ dummy_func(void) {
|
|||
map = sym_new_type(ctx, &PyDict_Type);
|
||||
}
|
||||
|
||||
op(_BUILD_STRING, (values[oparg] -- str)) {
|
||||
str = sym_new_type(ctx, &PyUnicode_Type);
|
||||
}
|
||||
|
||||
op(_BUILD_SET, (values[oparg] -- set)) {
|
||||
set = sym_new_type(ctx, &PySet_Type);
|
||||
}
|
||||
|
||||
op(_UNPACK_SEQUENCE_TWO_TUPLE, (seq -- val1, val0)) {
|
||||
val0 = sym_tuple_getitem(ctx, seq, 0);
|
||||
val1 = sym_tuple_getitem(ctx, seq, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue