gh-134584 : Optimize and eliminate redundant ref-counting for MAKE_FUNCTION in the JIT (GH-144963)

This commit is contained in:
Sacul 2026-04-09 22:22:53 +08:00 committed by GitHub
parent 2acb8d9257
commit 38d3aef375
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1152 additions and 1107 deletions

View file

@ -2106,6 +2106,11 @@ dummy_func(void) {
ss = sub_st;
}
op(_MAKE_FUNCTION, (codeobj_st -- func, co)) {
func = sym_new_type(ctx, &PyFunction_Type);
co = codeobj_st;
}
op(_MATCH_CLASS, (subject, type, names -- attrs, s, tp, n)) {
attrs = sym_new_not_null(ctx);
s = subject;