diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-05-15 15:15:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 15:15:23 (GMT) |
commit | f24afda5917ce1710ad08ca34b2509f1f2b16de2 (patch) | |
tree | 72513ebad5e8235d451cffdb27f67182606b686f /Lib/opcode.py | |
parent | e4e931a67e49cf3c61263dc94fb0806c34f972cd (diff) | |
download | cpython-f24afda5917ce1710ad08ca34b2509f1f2b16de2.zip cpython-f24afda5917ce1710ad08ca34b2509f1f2b16de2.tar.gz cpython-f24afda5917ce1710ad08ca34b2509f1f2b16de2.tar.bz2 |
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
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 88022a4..da143fe 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -213,5 +213,6 @@ def_op('LIST_EXTEND', 162) def_op('SET_UPDATE', 163) def_op('DICT_MERGE', 164) def_op('DICT_UPDATE', 165) +def_op('CALL_METHOD_KW', 166) del def_op, name_op, jrel_op, jabs_op |