mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
gh-134584: Eliminate redundant refcounting from _CALL_LIST_APPEND (GH-142711)
Signed-off-by: Manjusaka <me@manjusaka.me> Co-authored-by: Ken Jin <kenjin4096@gmail.com>
This commit is contained in:
parent
8bb5b6e8ce
commit
872ab51f32
10 changed files with 910 additions and 720 deletions
|
|
@ -1005,6 +1005,12 @@ dummy_func(void) {
|
|||
sym_set_const(flag, Py_True);
|
||||
}
|
||||
|
||||
op(_CALL_LIST_APPEND, (callable, self, arg -- c, s)) {
|
||||
(void)(arg);
|
||||
c = callable;
|
||||
s = self;
|
||||
}
|
||||
|
||||
op(_GUARD_IS_FALSE_POP, (flag -- )) {
|
||||
if (sym_is_const(ctx, flag)) {
|
||||
PyObject *value = sym_get_const(ctx, flag);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue