mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
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:
parent
e4e931a67e
commit
f24afda591
10 changed files with 247 additions and 180 deletions
1
Include/opcode.h
generated
1
Include/opcode.h
generated
|
@ -134,6 +134,7 @@ extern "C" {
|
|||
#define SET_UPDATE 163
|
||||
#define DICT_MERGE 164
|
||||
#define DICT_UPDATE 165
|
||||
#define CALL_METHOD_KW 166
|
||||
#ifdef NEED_OPCODE_JUMP_TABLES
|
||||
static uint32_t _PyOpcode_RelativeJump[8] = {
|
||||
0U,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue