summaryrefslogtreecommitdiffstats
path: root/Include/opcode.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-08-09 09:40:21 (GMT)
committerGitHub <noreply@github.com>2021-08-09 09:40:21 (GMT)
commitac75f6bdd4748b3378dd321f862d13aa1898f77a (patch)
treedacf952f54673797cd885c3da50e06dc358468ac /Include/opcode.h
parentb854557b49083d8625a433eb36aacb0c87d67c52 (diff)
downloadcpython-ac75f6bdd4748b3378dd321f862d13aa1898f77a.zip
cpython-ac75f6bdd4748b3378dd321f862d13aa1898f77a.tar.gz
cpython-ac75f6bdd4748b3378dd321f862d13aa1898f77a.tar.bz2
bpo-44826: Specialize STORE_ATTR (GH-27590)
* Generalize cache names for LOAD_ATTR to allow store and delete specializations. * Factor out specialization of attribute dictionary access. * Specialize STORE_ATTR.
Diffstat (limited to 'Include/opcode.h')
-rw-r--r--Include/opcode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 7bebb87..50b7832 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -149,6 +149,10 @@ extern "C" {
#define LOAD_GLOBAL_ADAPTIVE 41
#define LOAD_GLOBAL_MODULE 42
#define LOAD_GLOBAL_BUILTIN 43
+#define STORE_ATTR_ADAPTIVE 44
+#define STORE_ATTR_SPLIT_KEYS 45
+#define STORE_ATTR_SLOT 46
+#define STORE_ATTR_WITH_HINT 47
#ifdef NEED_OPCODE_JUMP_TABLES
static uint32_t _PyOpcode_RelativeJump[8] = {
0U,