bpo-26110: Add `CALL_METHOD_KW` opcode to speedup method calls with keywords (GH-26014)

* Add CALL_METHOD_KW

* Make CALL_METHOD branchless too since it shares the same code

* Place parentheses in STACK_SHRINK
This commit is contained in:
Ken Jin 2021-05-15 23:15:23 +08:00 committed by GitHub
parent e4e931a67e
commit f24afda591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 247 additions and 180 deletions

10
Python/importlib.h generated
View file

@ -1751,15 +1751,15 @@ const unsigned char _Py_M__importlib_bootstrap[] = {
65,8,2,193,8,7,65,39,9,193,15,14,65,35,9,193,
34,1,65,35,9,193,35,4,65,39,9,193,43,1,65,39,
9,114,235,0,0,0,99,1,0,0,0,0,0,0,0,0,
0,0,0,3,0,0,0,6,0,0,0,67,0,0,0,115,
0,0,0,3,0,0,0,7,0,0,0,67,0,0,0,115,
146,0,0,0,124,0,160,0,100,1,161,1,125,1,124,0,
160,0,100,2,161,1,125,2,124,1,100,3,117,1,114,41,
124,2,100,3,117,1,114,39,124,1,124,2,106,1,107,3,
114,39,116,2,106,3,100,4,124,1,155,2,100,5,124,2,
106,1,155,2,100,6,157,5,116,4,100,7,100,8,141,3,
114,39,116,2,160,3,100,4,124,1,155,2,100,5,124,2,
106,1,155,2,100,6,157,5,116,4,100,7,100,8,166,3,
1,0,124,1,83,0,124,2,100,3,117,1,114,48,124,2,
106,1,83,0,116,2,106,3,100,9,116,4,100,7,100,8,
141,3,1,0,124,0,100,10,25,0,125,1,100,11,124,0,
106,1,83,0,116,2,160,3,100,9,116,4,100,7,100,8,
166,3,1,0,124,0,100,10,25,0,125,1,100,11,124,0,
118,1,114,71,124,1,160,5,100,12,161,1,100,13,25,0,
125,1,124,1,83,0,41,14,122,167,67,97,108,99,117,108,
97,116,101,32,119,104,97,116,32,95,95,112,97,99,107,97,