mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
12
Python/generated_cases.c.h
generated
12
Python/generated_cases.c.h
generated
|
@ -2380,16 +2380,8 @@
|
|||
_PyExecutorObject *executor = (_PyExecutorObject *)code->co_executors->executors[oparg&255];
|
||||
if (executor->vm_data.valid) {
|
||||
Py_INCREF(executor);
|
||||
if (executor->execute == _PyUOpExecute) {
|
||||
current_executor = (_PyUOpExecutorObject *)executor;
|
||||
GOTO_TIER_TWO();
|
||||
}
|
||||
next_instr = executor->execute(executor, frame, stack_pointer);
|
||||
frame = tstate->current_frame;
|
||||
if (next_instr == NULL) {
|
||||
goto resume_with_error;
|
||||
}
|
||||
stack_pointer = _PyFrame_GetStackPointer(frame);
|
||||
current_executor = (_PyUOpExecutorObject *)executor;
|
||||
GOTO_TIER_TWO();
|
||||
}
|
||||
else {
|
||||
code->co_executors->executors[oparg & 255] = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue