Commit 97889f5
Mark results of float-producing _BINARY_OP as unique
Operations that always return a new float (true division, float**int,
int**negative_int, mixed int/float arithmetic) now mark their result
as PyJitRef_MakeUnique. This enables downstream operations to mutate
the result in place instead of allocating a new float.
Int results are NOT marked unique because small ints are cached/immortal.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c846269 commit 97889f5
2 files changed
+13
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
259 | 260 | | |
260 | | - | |
| 261 | + | |
| 262 | + | |
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
264 | | - | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
269 | | - | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
290 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
291 | 288 | | |
292 | 289 | | |
293 | 290 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments