Commit a7f7aaf
committed
simplify: port Unbox unbox(box(x)) identity path to C
Env-free handler: if IndexUnbox/PrimitiveUnbox input is a PrimitiveBox
with matching type, return the inner operand directly. Uses
HIR_OP_PrimitiveBox opcode check + hir_type_equal for type comparison.
Falls through to C++ for constant-folding paths.1 parent ade9151 commit a7f7aaf
3 files changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2830 | 2830 | | |
2831 | 2831 | | |
2832 | 2832 | | |
2833 | | - | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
2834 | 2836 | | |
| 2837 | + | |
2835 | 2838 | | |
2836 | 2839 | | |
2837 | 2840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
215 | 234 | | |
216 | 235 | | |
217 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments