mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Fix some incorrect indentation around the main switch (#98177)
The `}` marked with `/* End instructions */` is the end of the switch. There is another pair of `{}` around the switch, which is vestigial from ancient times when it was `for (;;) { switch (opcode) { ... } }`. All `DISPATCH` macro calls should be inside that pair.
This commit is contained in:
parent
5ecf961640
commit
f5d71073e6
1 changed files with 19 additions and 20 deletions
|
@ -1152,12 +1152,11 @@ handle_eval_breaker:
|
||||||
|
|
||||||
{
|
{
|
||||||
/* Start instructions */
|
/* Start instructions */
|
||||||
#if USE_COMPUTED_GOTOS
|
#if !USE_COMPUTED_GOTOS
|
||||||
{
|
|
||||||
#else
|
|
||||||
dispatch_opcode:
|
dispatch_opcode:
|
||||||
switch (opcode) {
|
switch (opcode)
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
|
||||||
/* BEWARE!
|
/* BEWARE!
|
||||||
It is essential that any operation that fails must goto error
|
It is essential that any operation that fails must goto error
|
||||||
|
@ -5102,23 +5101,23 @@ handle_eval_breaker:
|
||||||
/* Specialization misses */
|
/* Specialization misses */
|
||||||
|
|
||||||
miss:
|
miss:
|
||||||
{
|
{
|
||||||
STAT_INC(opcode, miss);
|
STAT_INC(opcode, miss);
|
||||||
opcode = _PyOpcode_Deopt[opcode];
|
opcode = _PyOpcode_Deopt[opcode];
|
||||||
STAT_INC(opcode, miss);
|
STAT_INC(opcode, miss);
|
||||||
/* The counter is always the first cache entry: */
|
/* The counter is always the first cache entry: */
|
||||||
_Py_CODEUNIT *counter = (_Py_CODEUNIT *)next_instr;
|
_Py_CODEUNIT *counter = (_Py_CODEUNIT *)next_instr;
|
||||||
*counter -= 1;
|
*counter -= 1;
|
||||||
if (*counter == 0) {
|
if (*counter == 0) {
|
||||||
int adaptive_opcode = _PyOpcode_Adaptive[opcode];
|
int adaptive_opcode = _PyOpcode_Adaptive[opcode];
|
||||||
assert(adaptive_opcode);
|
assert(adaptive_opcode);
|
||||||
_Py_SET_OPCODE(next_instr[-1], adaptive_opcode);
|
_Py_SET_OPCODE(next_instr[-1], adaptive_opcode);
|
||||||
STAT_INC(opcode, deopt);
|
STAT_INC(opcode, deopt);
|
||||||
*counter = adaptive_counter_start();
|
*counter = adaptive_counter_start();
|
||||||
|
}
|
||||||
|
next_instr--;
|
||||||
|
DISPATCH_GOTO();
|
||||||
}
|
}
|
||||||
next_instr--;
|
|
||||||
DISPATCH_GOTO();
|
|
||||||
}
|
|
||||||
|
|
||||||
unbound_local_error:
|
unbound_local_error:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue