mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-46841: Use inline caching for COMPARE_OP (GH-31622)
This commit is contained in:
parent
df9f759755
commit
7820a5897e
9 changed files with 179 additions and 163 deletions
1
Include/opcode.h
generated
1
Include/opcode.h
generated
|
|
@ -212,6 +212,7 @@ static const uint32_t _PyOpcode_Jump[8] = {
|
|||
|
||||
const uint8_t _PyOpcode_InlineCacheEntries[256] = {
|
||||
[UNPACK_SEQUENCE] = 1,
|
||||
[COMPARE_OP] = 2,
|
||||
[LOAD_GLOBAL] = 5,
|
||||
[BINARY_OP] = 1,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue