diff options
author | Mark Shannon <mark@hotpy.org> | 2024-01-10 15:44:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 15:44:34 (GMT) |
commit | a0c9cf9456c2ee7a89d9bd859c07afac8cf5e893 (patch) | |
tree | d89d0bcbd8850e29b68a262c9427c6e5288d65f7 /Python/executor_cases.c.h | |
parent | 93930eaf0acd64dc0d08d58321d2682cb019bc1a (diff) | |
download | cpython-a0c9cf9456c2ee7a89d9bd859c07afac8cf5e893.zip cpython-a0c9cf9456c2ee7a89d9bd859c07afac8cf5e893.tar.gz cpython-a0c9cf9456c2ee7a89d9bd859c07afac8cf5e893.tar.bz2 |
GH-113860: All executors are now defined in terms of micro ops. Convert counter executor to use uops. (GH-113864)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r-- | Python/executor_cases.c.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 14fb3a0..ea4caa9 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -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 |