mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +00:00
GH-113860: All executors are now defined in terms of micro ops. Convert counter executor to use uops. (GH-113864)
This commit is contained in:
parent
93930eaf0a
commit
a0c9cf9456
9 changed files with 125 additions and 139 deletions
18
Python/executor_cases.c.h
generated
18
Python/executor_cases.c.h
generated
|
@ -3397,4 +3397,22 @@
|
|||
break;
|
||||
}
|
||||
|
||||
case _LOAD_CONST_INLINE_BORROW: {
|
||||
PyObject *value;
|
||||
PyObject *ptr = (PyObject *)CURRENT_OPERAND();
|
||||
value = ptr;
|
||||
stack_pointer[0] = value;
|
||||
stack_pointer += 1;
|
||||
break;
|
||||
}
|
||||
|
||||
case _INTERNAL_INCREMENT_OPT_COUNTER: {
|
||||
PyObject *opt;
|
||||
opt = stack_pointer[-1];
|
||||
_PyCounterOptimizerObject *exe = (_PyCounterOptimizerObject *)opt;
|
||||
exe->count++;
|
||||
stack_pointer += -1;
|
||||
break;
|
||||
}
|
||||
|
||||
#undef TIER_TWO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue