summaryrefslogtreecommitdiffstats
path: root/Include/opcode.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-07-15 12:13:12 (GMT)
committerGitHub <noreply@github.com>2021-07-15 12:13:12 (GMT)
commit641345d636320a6fca04a5271fa4c4c5ba3e5437 (patch)
tree94bc416ec61aa551bf4691fa70b3ad92373783ed /Include/opcode.h
parenta0551059ba6a83d32a36fb3b87911c77f26f5b9f (diff)
downloadcpython-641345d636320a6fca04a5271fa4c4c5ba3e5437.zip
cpython-641345d636320a6fca04a5271fa4c4c5ba3e5437.tar.gz
cpython-641345d636320a6fca04a5271fa4c4c5ba3e5437.tar.bz2
bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter (GH-27043)
Diffstat (limited to 'Include/opcode.h')
-rw-r--r--Include/opcode.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 7f8376f..7bebb87 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -136,15 +136,19 @@ extern "C" {
#define DICT_MERGE 164
#define DICT_UPDATE 165
#define CALL_METHOD_KW 166
-#define JUMP_ABSOLUTE_QUICK 7
-#define LOAD_ATTR_ADAPTIVE 8
-#define LOAD_ATTR_SPLIT_KEYS 13
-#define LOAD_ATTR_WITH_HINT 14
-#define LOAD_ATTR_SLOT 18
-#define LOAD_ATTR_MODULE 21
-#define LOAD_GLOBAL_ADAPTIVE 36
-#define LOAD_GLOBAL_MODULE 38
-#define LOAD_GLOBAL_BUILTIN 39
+#define BINARY_SUBSCR_ADAPTIVE 7
+#define BINARY_SUBSCR_LIST_INT 8
+#define BINARY_SUBSCR_TUPLE_INT 13
+#define BINARY_SUBSCR_DICT 14
+#define JUMP_ABSOLUTE_QUICK 18
+#define LOAD_ATTR_ADAPTIVE 21
+#define LOAD_ATTR_SPLIT_KEYS 36
+#define LOAD_ATTR_WITH_HINT 38
+#define LOAD_ATTR_SLOT 39
+#define LOAD_ATTR_MODULE 40
+#define LOAD_GLOBAL_ADAPTIVE 41
+#define LOAD_GLOBAL_MODULE 42
+#define LOAD_GLOBAL_BUILTIN 43
#ifdef NEED_OPCODE_JUMP_TABLES
static uint32_t _PyOpcode_RelativeJump[8] = {
0U,