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
9 changed files with 96 additions and 21 deletions
+12
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;