diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2024-01-12 11:58:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 11:58:23 (GMT) |
commit | 30e6cbdba22d946dacc3f2e19c884b2e1891d58c (patch) | |
tree | 50ef18098a02e61c079b8a6c4477496b27b06adf /Python/bytecodes.c | |
parent | 29e2839cd6af5c90cfd7abe800b045b6dcee0c05 (diff) | |
download | cpython-30e6cbdba22d946dacc3f2e19c884b2e1891d58c.zip cpython-30e6cbdba22d946dacc3f2e19c884b2e1891d58c.tar.gz cpython-30e6cbdba22d946dacc3f2e19c884b2e1891d58c.tar.bz2 |
GH-113860: Get rid of `_PyUOpExecutorObject` (GH-113954)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 2011d96..b346fe7 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -68,7 +68,7 @@ static size_t jump; static uint16_t invert, counter, index, hint; #define unused 0 // Used in a macro def, can't be static static uint32_t type_version; -static _PyUOpExecutorObject *current_executor; +static _PyExecutorObject *current_executor; static PyObject * dummy_func( @@ -2369,10 +2369,10 @@ dummy_func( CHECK_EVAL_BREAKER(); PyCodeObject *code = _PyFrame_GetCode(frame); - _PyExecutorObject *executor = (_PyExecutorObject *)code->co_executors->executors[oparg&255]; + _PyExecutorObject *executor = code->co_executors->executors[oparg & 255]; if (executor->vm_data.valid) { Py_INCREF(executor); - current_executor = (_PyUOpExecutorObject *)executor; + current_executor = executor; GOTO_TIER_TWO(); } else { @@ -4063,7 +4063,7 @@ dummy_func( op(_CHECK_VALIDITY, (--)) { TIER_TWO_ONLY - DEOPT_IF(!current_executor->base.vm_data.valid); + DEOPT_IF(!current_executor->vm_data.valid); } op(_LOAD_CONST_INLINE_BORROW, (ptr/4 -- value)) { |