mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
GH-104909: Move unused cache entries from uops to macros (#107444)
There's no need to use a dummy uop to skip unused cache entries. The macro syntax lets you write `unused/1` instead. Similarly, move `unused/5` from op `_LOAD_ATTR_INSTANCE_VALUE` to macro `LOAD_ATTR_INSTANCE_VALUE`.
This commit is contained in:
parent
a22ff8e11c
commit
5eb80a61f5
4 changed files with 31 additions and 47 deletions
4
Python/executor_cases.c.h
generated
4
Python/executor_cases.c.h
generated
|
@ -1009,10 +1009,6 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _SKIP_CACHE: {
|
||||
break;
|
||||
}
|
||||
|
||||
case _GUARD_GLOBALS_VERSION: {
|
||||
uint16_t version = (uint16_t)operand;
|
||||
PyDictObject *dict = (PyDictObject *)GLOBALS();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue