mirror of
https://github.com/python/cpython.git
synced 2025-09-11 11:17:16 +00:00
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.
This commit is contained in:
parent
b854557b49
commit
ac75f6bdd4
9 changed files with 345 additions and 93 deletions
4
Include/opcode.h
generated
4
Include/opcode.h
generated
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue