mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_LIST_INT (gh-142703)
This commit is contained in:
parent
af7cca3c39
commit
04da416e6b
9 changed files with 96 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue