summaryrefslogtreecommitdiff
path: root/Include/opcode.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-03-01 16:00:34 +0000
committerGitHub <noreply@github.com>2022-03-01 16:00:34 +0000
commit3b0f1c5a710eff289dc44bec972dbaea353cc54f (patch)
treea3d33b56de327fa0a3abbff54c8013a95da61638 /Include/opcode.h
parente91b0a7139d4a4cbd2351ccb5cd021a100cf42d2 (diff)
downloadcpython-git-3b0f1c5a710eff289dc44bec972dbaea353cc54f.tar.gz
bpo-46841: Use inline cache for `BINARY_SUBSCR`. (GH-31618)
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 ba85b7ff75..f6330d9056 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -211,6 +211,7 @@ static const uint32_t _PyOpcode_Jump[8] = {
};
const uint8_t _PyOpcode_InlineCacheEntries[256] = {
+ [BINARY_SUBSCR] = 4,
[UNPACK_SEQUENCE] = 1,
[COMPARE_OP] = 2,
[LOAD_GLOBAL] = 5,