mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
gh-134584: Eliminate redundant refcounting in JIT for MATCH_CLASS (GH-144821)
This commit is contained in:
parent
97968564b6
commit
798070d8ca
11 changed files with 1155 additions and 1070 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue