Skip to content

Commit 7869107

Browse files
committed
Restore more efficient jump-to-error handling for tier 1
1 parent 88b710c commit 7869107

File tree

5 files changed

+149
-334
lines changed

5 files changed

+149
-334
lines changed

Python/bytecodes.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5152,18 +5152,18 @@ dummy_func(
51525152
}
51535153

51545154
label(pop_4_error) {
5155-
STACK_SHRINK(1);
5156-
goto pop_3_error;
5155+
STACK_SHRINK(4);
5156+
goto error;
51575157
}
51585158

51595159
label(pop_3_error) {
5160-
STACK_SHRINK(1);
5161-
goto pop_2_error;
5160+
STACK_SHRINK(3);
5161+
goto error;
51625162
}
51635163

51645164
label(pop_2_error) {
5165-
STACK_SHRINK(1);
5166-
goto pop_1_error;
5165+
STACK_SHRINK(2);
5166+
goto error;
51675167
}
51685168

51695169
label(pop_1_error) {

Python/executor_cases.c.h

Lines changed: 60 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)