bpo-46841: Use inline caching for COMPARE_OP (GH-31622)

This commit is contained in:
Brandt Bucher 2022-03-01 05:53:13 -08:00 committed by GitHub
parent df9f759755
commit 7820a5897e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 179 additions and 163 deletions

1
Include/opcode.h generated
View file

@ -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,
};