gh-134584: Eliminate redundant refcounting in JIT for MATCH_CLASS (GH-144821)

This commit is contained in:
Sacul 2026-03-14 20:00:18 +08:00 committed by GitHub
parent 97968564b6
commit 798070d8ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1155 additions and 1070 deletions

View file

@ -1710,6 +1710,13 @@ dummy_func(void) {
ss = sub_st;
}
op(_MATCH_CLASS, (subject, type, names -- attrs, s, tp, n)) {
attrs = sym_new_not_null(ctx);
s = subject;
tp = type;
n = names;
}
op(_RECORD_TOS, (tos -- tos)) {
sym_set_recorded_value(tos, (PyObject *)this_instr->operand0);
}