Skip to content

Commit a7a6e00

Browse files
committed
Cleanup some commented-out lines
1 parent 5751b0e commit a7a6e00

File tree

3 files changed

+153
-186
lines changed

3 files changed

+153
-186
lines changed

Python/bytecodes.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2422,11 +2422,8 @@ dummy_func(
24222422
assert(next_instr[INLINE_CACHE_ENTRIES_FOR_ITER + oparg].op.code == END_FOR ||
24232423
next_instr[INLINE_CACHE_ENTRIES_FOR_ITER + oparg].op.code == INSTRUMENTED_END_FOR);
24242424
Py_DECREF(iter);
2425-
// STACK_SHRINK(1);
2426-
// SKIP_OVER(INLINE_CACHE_ENTRIES_FOR_ITER);
24272425
/* Jump forward oparg, then skip following END_FOR instruction */
24282426
JUMP_POP_DISPATCH(INLINE_CACHE_ENTRIES_FOR_ITER + oparg + 1, 1);
2429-
// DISPATCH();
24302427
}
24312428
// Common case: no jump, leave it to the code generator
24322429
}
@@ -2473,11 +2470,8 @@ dummy_func(
24732470
Py_DECREF(seq);
24742471
}
24752472
Py_DECREF(iter);
2476-
// STACK_SHRINK(1);
2477-
// SKIP_OVER(INLINE_CACHE_ENTRIES_FOR_ITER);
24782473
/* Jump forward oparg, then skip following END_FOR instruction */
24792474
JUMP_POP_DISPATCH(INLINE_CACHE_ENTRIES_FOR_ITER + oparg + 1, 1);
2480-
// DISPATCH();
24812475
end_for_iter_list:
24822476
// Common case: no jump, leave it to the code generator
24832477
}
@@ -2496,11 +2490,8 @@ dummy_func(
24962490
Py_DECREF(seq);
24972491
}
24982492
Py_DECREF(iter);
2499-
// STACK_SHRINK(1);
2500-
// SKIP_OVER(INLINE_CACHE_ENTRIES_FOR_ITER);
25012493
/* Jump forward oparg, then skip following END_FOR instruction */
25022494
JUMP_POP_DISPATCH(INLINE_CACHE_ENTRIES_FOR_ITER + oparg + 1, 1);
2503-
// DISPATCH();
25042495
end_for_iter_tuple:
25052496
// Common case: no jump, leave it to the code generator
25062497
}
@@ -2512,10 +2503,7 @@ dummy_func(
25122503
if (r->len <= 0) {
25132504
// STACK_SHRINK(1);
25142505
Py_DECREF(r);
2515-
// SKIP_OVER(INLINE_CACHE_ENTRIES_FOR_ITER);
2516-
// Jump over END_FOR instruction.
25172506
JUMP_POP_DISPATCH(INLINE_CACHE_ENTRIES_FOR_ITER + oparg + 1, 1);
2518-
// DISPATCH();
25192507
}
25202508
long value = r->start;
25212509
r->start = value + r->step;

Python/executor_cases.c.h

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

0 commit comments

Comments
 (0)