Commit aa14a88
committed
simplify: port PrimitiveCompare box(b)==True path to C
Env-free handler: if PrimitiveCompare(kEqual, PrimitiveBoxBool(b), True)
then return b directly (skip box+compare). Uses HIR_PCMP_Equal constant
and hir_type_as_object to check for Py_True.1 parent 6ee6641 commit aa14a88
3 files changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2817 | 2817 | | |
2818 | 2818 | | |
2819 | 2819 | | |
2820 | | - | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
2821 | 2823 | | |
2822 | 2824 | | |
| 2825 | + | |
2823 | 2826 | | |
2824 | 2827 | | |
2825 | 2828 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
168 | 187 | | |
169 | 188 | | |
170 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments