diff options
author | Nadeshiko Manju <me@manjusaka.me> | 2025-04-27 12:30:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-27 12:30:28 (GMT) |
commit | 614d79231d1e60d31b9452ea2afbc2a7d2f0034b (patch) | |
tree | 534c9ed37c87d3e29bde9e06a68d299d1c42c763 /Python/optimizer_bytecodes.c | |
parent | 8b4fd24ca5e544735f799089188729753817c391 (diff) | |
download | cpython-614d79231d1e60d31b9452ea2afbc2a7d2f0034b.zip cpython-614d79231d1e60d31b9452ea2afbc2a7d2f0034b.tar.gz cpython-614d79231d1e60d31b9452ea2afbc2a7d2f0034b.tar.bz2 |
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>
Diffstat (limited to 'Python/optimizer_bytecodes.c')
-rw-r--r-- | Python/optimizer_bytecodes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/optimizer_bytecodes.c b/Python/optimizer_bytecodes.c index f862c9c..567caad 100644 --- a/Python/optimizer_bytecodes.c +++ b/Python/optimizer_bytecodes.c @@ -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); |