diff options
| author | Jeff Zhang <jeff@39bytes.dev> | 2026-01-13 20:06:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-13 20:06:01 -0500 |
| commit | 65a484578072f86586f250ae28712930da14cf53 (patch) | |
| tree | 3538922daa6a174246c92e0c6e7eb3ee22230345 /test/ruby/test_integer.rb | |
| parent | 4f8478f50cd12e1144addcef0cbff35e9ee1e3db (diff) | |
ZJIT: Constant-fold LoadField/GuardBitEquals from known-frozen object
Resolves https://github.com/Shopify/ruby/issues/915
When we have `LoadField` with a `Shape` return type, we can fold it similar to the object case.
`GuardBitEquals` can be removed when the argument is `Const` and the values are equal.
The behaviors for loading instances variables from frozen/dynamic objects are already covered in existing tests so no new tests were added.
Diffstat (limited to 'test/ruby/test_integer.rb')
0 files changed, 0 insertions, 0 deletions
