mirror of
https://github.com/python/cpython.git
synced 2026-04-20 10:51:00 +00:00
gh-134584 : Optimize and eliminate redundant ref-counting for MAKE_FUNCTION in the JIT (GH-144963)
This commit is contained in:
parent
2acb8d9257
commit
38d3aef375
11 changed files with 1152 additions and 1107 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue