Skip to content
Prev Previous commit
Next Next commit
gh-131798: Add JIT path for _BUILD_STRING
Signed-off-by: Manjusaka <me@manjusaka.me>
  • Loading branch information
Zheaoli committed Apr 15, 2025
commit ab00ff4295c5dd37df0a2524256d21203362c5fa
10 changes: 0 additions & 10 deletions Python/optimizer_bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,16 +919,6 @@ dummy_func(void) {
tup = sym_new_tuple(ctx, oparg, values);
}

op(_BUILD_SLICE, (values[oparg] -- slice)) {
if (sym_is_const(ctx, values[oparg])) {
PyObject *val = sym_get_const(ctx, values[oparg]);
slice = sym_new_const(ctx, val);
Py_DecRef(val);
}
else {
slice = sym_new_type(ctx, &PySlice_Type);
}
}
op(_BUILD_STRING, (values[oparg] -- str)) {
if (sym_is_const(ctx, values[oparg])) {
PyObject *val = sym_get_const(ctx, values[oparg]);
Expand Down