summaryrefslogtreecommitdiffstats
path: root/Include/opcode.h
diff options
context:
space:
mode:
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>2021-05-15 15:15:23 (GMT)
committerGitHub <noreply@github.com>2021-05-15 15:15:23 (GMT)
commitf24afda5917ce1710ad08ca34b2509f1f2b16de2 (patch)
tree72513ebad5e8235d451cffdb27f67182606b686f /Include/opcode.h
parente4e931a67e49cf3c61263dc94fb0806c34f972cd (diff)
downloadcpython-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 'Include/opcode.h')
-rw-r--r--Include/opcode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 1e44e1f..a3a8b2a 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -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,