gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INT (gh-142703)

This commit is contained in:
Donghee Na 2025-12-14 21:26:00 +09:00 committed by GitHub
parent af7cca3c39
commit 04da416e6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 96 additions and 21 deletions

View file

@ -103,6 +103,12 @@ dummy_func(void) {
GETLOCAL(oparg) = value;
}
op(_STORE_SUBSCR_LIST_INT, (value, list_st, sub_st -- ls, ss)) {
(void)value;
ls = list_st;
ss = sub_st;
}
op(_PUSH_NULL, (-- res)) {
res = sym_new_null(ctx);
}
@ -529,6 +535,12 @@ dummy_func(void) {
}
}
op(_POP_TOP_INT, (value --)) {
if (PyJitRef_IsBorrowed(value)) {
REPLACE_OP(this_instr, _POP_TOP_NOP, 0, 0);
}
}
op(_COPY, (bottom, unused[oparg-1] -- bottom, unused[oparg-1], top)) {
assert(oparg > 0);
top = bottom;