f9c51ac5ea (master): ZJIT: Fix Class type system bug and constant-fold IsA (#15268)

0 views
Skip to first unread message

Max Bernstein

unread,
Mar 3, 2026, 6:02:01 PM (13 hours ago) Mar 3
to ruby...@g.ruby-lang.org
Max Bernstein 2026-03-03 23:01:30 +0000 (Tue, 03 Mar 2026)

New Revision: f9c51ac5ea

https://github.com/ruby/ruby/commit/f9c51ac5ea

Log:
ZJIT: Fix Class type system bug and constant-fold IsA (#15268)

Fix a some bugs in the type lattice around classes and user-defined classes. Refine types more precisely to subclasses of object.

With that fix, add const-folding support for IsA.

Co-authored-by: John Hawthorn <john.h...@shopify.com>
Co-authored-by: Luke Gruber <luke....@shopify.com>

Modified files:
zjit/src/hir.rs
zjit/src/hir/opt_tests.rs
zjit/src/hir/tests.rs
zjit/src/hir_type/gen_hir_type.rb
zjit/src/hir_type/hir_type.inc.rs
zjit/src/hir_type/mod.rs
Reply all
Reply to author
Forward
0 new messages