Commit 91960f9b
91960f9bf26cMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 4 files · +3 added · ~1 modified
Description
fix(codegen): deferred const init unboxes bigint rhs into int slot
When CONST = Class.new chain returns bigint (under --int-overflow= promote) but the const slot stayed mrb_int, the deferred-init emit assigned sp_Bigint * directly. Use sp_bigint_to_int when the rhs's actual emit is bigint and the const's declared type is int.
Promote-mode: +1 (579 -> 580). Default 633/0/0.
Co-Authored-By: Claude Opus 4.7 [email protected]
Details
- Commit
- 91960f9bf26c
- Parent
- 75a2d209403f
const_init_defers_for_main_localaddedView file
Binary summary diff
@@ -1,0 +1,13 @@
+Format: ELF binary
+Class: ELF64
+Endianness: little
+ABI: System V
+Type: shared object / PIE
+Architecture: x86-64
+Entry point: 0x1770
+Program headers: 13
+Program header offset: 0x40
+Program header size: 56
+Section headers: 31
+Flags: 0x0
+Sections: .interp, .note.gnu.property, .note.gnu.build-id, .note.ABI-tag, .gnu.hash, .dynsym, .dynstr, .gnu.version, .gnu.version_r, .rela.dyn, .rela.plt, .init, .plt, .plt.got, .plt.sec, .text, .fini, .rodata, .eh_frame_hdr, .eh_frame, .init_array, .fini_array, .dynamic, .got, .data, .bss, .comment, .symtab, .strtab, .shstrtab
hash_shorthandaddedView file
Loading diff…
pattern_pinaddedView file
Loading diff…
spinel_codegen.rbmodifiedView file
Loading diff…