diff options
author | Guido van Rossum <guido@python.org> | 2023-08-16 23:26:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 23:26:43 (GMT) |
commit | dc8fdf5fd5f572e87152883f15f35c354fa4b4bf (patch) | |
tree | 8b4c01a4f29113416bda04ebecc1da7126400bb5 /Python/executor.c | |
parent | 665a4391e10167dad1c854fb604c86f336fcd331 (diff) | |
download | cpython-dc8fdf5fd5f572e87152883f15f35c354fa4b4bf.zip cpython-dc8fdf5fd5f572e87152883f15f35c354fa4b4bf.tar.gz cpython-dc8fdf5fd5f572e87152883f15f35c354fa4b4bf.tar.bz2 |
gh-106581: Split `CALL_PY_EXACT_ARGS` into uops (#107760)
* Split `CALL_PY_EXACT_ARGS` into uops
This is only the first step for doing `CALL` in Tier 2.
The next step involves tracing into the called code object and back.
After that we'll have to do the remaining `CALL` specialization.
Finally we'll have to deal with `KW_NAMES`.
Note: this moves setting `frame->return_offset` directly in front of
`DISPATCH_INLINED()`, to make it easier to move it into `_PUSH_FRAME`.
Diffstat (limited to 'Python/executor.c')
-rw-r--r-- | Python/executor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/executor.c b/Python/executor.c index 4a18618..5a571e6 100644 --- a/Python/executor.c +++ b/Python/executor.c @@ -81,6 +81,7 @@ _PyUopExecute(_PyExecutorObject *executor, _PyInterpreterFrame *frame, PyObject OBJECT_STAT_INC(optimization_uops_executed); switch (opcode) { +#define TIER_TWO 2 #include "executor_cases.c.h" default: @@ -106,6 +107,7 @@ pop_3_error: pop_2_error: STACK_SHRINK(1); pop_1_error: +pop_1_exit_unwind: STACK_SHRINK(1); error: // On ERROR_IF we return NULL as the frame. |