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