gh-139757: Add BINARY_OP_SUBSCR_USTR_INT (GH-143389)

This commit is contained in:
Chris Eibl 2026-01-04 15:14:27 +01:00 committed by GitHub
parent 6116d70bbd
commit e6bfe4d886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 1462 additions and 1197 deletions

View file

@ -334,6 +334,12 @@ dummy_func(void) {
i = sub_st;
}
op(_BINARY_OP_SUBSCR_USTR_INT, (str_st, sub_st -- res, s, i)) {
res = sym_new_type(ctx, &PyUnicode_Type);
s = str_st;
i = sub_st;
}
op(_GUARD_BINARY_OP_SUBSCR_TUPLE_INT_BOUNDS, (tuple_st, sub_st -- tuple_st, sub_st)) {
assert(sym_matches_type(tuple_st, &PyTuple_Type));
if (sym_is_const(ctx, sub_st)) {