SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72137 0 47 Python

gh-109979: Auto-generate the target for DEOPT_IF() (#110193)

In Python/bytecodes.c, you now write
```
    DEOPT_IF(condition);
```
The code generator expands this to
```
    DEOPT_IF(condition, opcode);
```
where `opcode` is the name of the unspecialized instruction.
This works inside macro expansions too.

**CAVEAT:** The entire `DEOPT_IF(condition)` statement must be on a single line.
If it isn't, the substitution will fail; an error will be printed by the code generator
and the C compiler will report some errors.
G
Guido van Rossum committed
d67edcf0b361c9ee0d29ed719562c58a85304cd0
Parent: d735016
Committed by GitHub <noreply@github.com> on 10/3/2023, 5:13:50 PM