mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
GH-125515: Remove two unused error branches. (#133181)
Remove two unused error branches in the generated bytecode handling.
This commit is contained in:
parent
327f5ff9fa
commit
6c522debc2
3 changed files with 0 additions and 28 deletions
|
@ -5332,18 +5332,6 @@ dummy_func(
|
|||
assert(tstate->tracing || eval_breaker == FT_ATOMIC_LOAD_UINTPTR_ACQUIRE(_PyFrame_GetCode(frame)->_co_instrumentation_version));
|
||||
}
|
||||
|
||||
label(pop_4_error) {
|
||||
stack_pointer -= 4;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
goto error;
|
||||
}
|
||||
|
||||
label(pop_3_error) {
|
||||
stack_pointer -= 3;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
goto error;
|
||||
}
|
||||
|
||||
label(pop_2_error) {
|
||||
stack_pointer -= 2;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
|
|
14
Python/generated_cases.c.h
generated
14
Python/generated_cases.c.h
generated
|
@ -12230,20 +12230,6 @@ JUMP_TO_LABEL(error);
|
|||
#endif /* Py_TAIL_CALL_INTERP */
|
||||
/* BEGIN LABELS */
|
||||
|
||||
LABEL(pop_4_error)
|
||||
{
|
||||
stack_pointer -= 4;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
JUMP_TO_LABEL(error);
|
||||
}
|
||||
|
||||
LABEL(pop_3_error)
|
||||
{
|
||||
stack_pointer -= 3;
|
||||
assert(WITHIN_STACK_BOUNDS());
|
||||
JUMP_TO_LABEL(error);
|
||||
}
|
||||
|
||||
LABEL(pop_2_error)
|
||||
{
|
||||
stack_pointer -= 2;
|
||||
|
|
2
Python/opcode_targets.h
generated
2
Python/opcode_targets.h
generated
|
@ -260,8 +260,6 @@ static void *opcode_targets[256] = {
|
|||
#else /* Py_TAIL_CALL_INTERP */
|
||||
static py_tail_call_funcptr INSTRUCTION_TABLE[256];
|
||||
|
||||
Py_PRESERVE_NONE_CC static PyObject *_TAIL_CALL_pop_4_error(TAIL_CALL_PARAMS);
|
||||
Py_PRESERVE_NONE_CC static PyObject *_TAIL_CALL_pop_3_error(TAIL_CALL_PARAMS);
|
||||
Py_PRESERVE_NONE_CC static PyObject *_TAIL_CALL_pop_2_error(TAIL_CALL_PARAMS);
|
||||
Py_PRESERVE_NONE_CC static PyObject *_TAIL_CALL_pop_1_error(TAIL_CALL_PARAMS);
|
||||
Py_PRESERVE_NONE_CC static PyObject *_TAIL_CALL_error(TAIL_CALL_PARAMS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue