mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-46841: Use inline cache for BINARY_SUBSCR
. (GH-31618)
This commit is contained in:
parent
e91b0a7139
commit
3b0f1c5a71
11 changed files with 76 additions and 39 deletions
1
Include/opcode.h
generated
1
Include/opcode.h
generated
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue