Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-87729: specialize LOAD_SUPER_ATTR_METHOD #103809

Merged
merged 38 commits into from
Apr 25, 2023
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0a0ebe2
gh-87729: add instruction for faster zero-arg super()
carljm Apr 10, 2023
f14a3bf
add news entry
carljm Apr 13, 2023
5625e73
document LOAD_ZERO_SUPER_ATTR
carljm Apr 13, 2023
0775efe
fix gdb test_wrapper_call
carljm Apr 13, 2023
f229b5b
optimize 2-arg super also
carljm Apr 13, 2023
626999d
fix incompatible assignment
carljm Apr 13, 2023
9384106
Merge branch 'main' into superopt
carljm Apr 13, 2023
92c943b
fix bad first arg
carljm Apr 13, 2023
09804cd
specialize LOAD_SUPER_ATTR for methods
carljm Apr 14, 2023
775ed0f
Apply suggestions from code review
carljm Apr 14, 2023
2077f1a
don't unnecessarily re-find args in error case
carljm Apr 14, 2023
64da49f
Merge branch 'main' into superopt
carljm Apr 14, 2023
4759ad9
update generated cases
carljm Apr 14, 2023
94399c2
fix incompatible types
carljm Apr 14, 2023
b73cff0
Merge branch 'superopt' into superopt_spec
carljm Apr 14, 2023
5627d66
don't double execute descriptor on specialization fail
carljm Apr 14, 2023
5136459
Merge branch 'main' into superopt
carljm Apr 17, 2023
82945b2
review comments
carljm Apr 17, 2023
3a3cb74
update generated cases with new comment
carljm Apr 17, 2023
079c65a
Merge branch 'superopt' into superopt_spec
carljm Apr 17, 2023
e4466a7
simplify oparg & 2 handling
carljm Apr 19, 2023
5c0a21c
Merge branch 'main' into superopt
carljm Apr 19, 2023
f161268
cleanup and clarification
carljm Apr 20, 2023
df442c0
move __class__ special case out of the fast path
carljm Apr 20, 2023
19b8025
Merge branch 'main' into superopt
carljm Apr 24, 2023
0de5bc6
Merge branch 'main' into superopt
carljm Apr 24, 2023
1972ca4
Merge branch 'superopt' into superopt_spec
carljm Apr 24, 2023
6858a6f
re-add comment
carljm Apr 24, 2023
dbe1665
Merge branch 'main' into superopt
carljm Apr 24, 2023
793a69a
Merge branch 'superopt' into superopt_spec
carljm Apr 24, 2023
af807d6
Merge branch 'main' into superopt_spec
carljm Apr 24, 2023
373cbc4
update previous NEWS entry
carljm Apr 24, 2023
3236f45
Merge branch 'main' into superopt_spec
carljm Apr 24, 2023
3d0e51a
credit Vlad
carljm Apr 24, 2023
c96d5c1
Merge branch 'main' into superopt_spec
ambv Apr 25, 2023
ad4008e
Merge branch 'main' into superopt_spec
carljm Apr 25, 2023
66d6271
Merge branch 'main' into superopt_spec
carljm Apr 25, 2023
fc6fcea
simplify LOAD_SUPER_ATTR, let specialization optimize
carljm Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't unnecessarily re-find args in error case
  • Loading branch information
carljm committed Apr 14, 2023
commit 2077f1a676e1e8b580c715f70451e91b9db72f48
3 changes: 2 additions & 1 deletion Objects/typeobject.c
Original file line number Diff line number Diff line change
@@ -9434,7 +9434,8 @@ do_super_lookup(superobject *su, PyTypeObject *su_type, PyObject *su_obj,

skip:
if (su == NULL) {
su = (superobject *)PyObject_CallNoArgs((PyObject *)&PySuper_Type);
PyObject *args[] = {su_type, su_obj};
su = (superobject *)PyObject_Vectorcall((PyObject *)&PySuper_Type, args, 2, NULL);
if (su == NULL) {
return NULL;
}