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:
Nadeshiko Manju 2025-12-15 23:49:36 +08:00 committed by GitHub
parent 8bb5b6e8ce
commit 872ab51f32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 910 additions and 720 deletions

View file

@ -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);