diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2023-01-10 10:54:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 13:54:07 -0500 |
commit | 5bf7218b01375b635188795dc4494562c2a98ea6 (patch) | |
tree | 7dfd178ce24a648e746263885c2cb679de2835b8 /LEGAL | |
parent | aeddc19340c7116d48fac3080553fbb823857d16 (diff) |
Differentiate T_ARRAY and array subclasses (#7091)
* Differentiate T_ARRAY and array subclasses
This commit teaches the YJIT context the difference between Arrays
(objects with type T_ARRAY and class rb_cArray) vs Array subclasses
(objects with type T_ARRAY but _not_ class rb_cArray). It uses this
information to reduce the number of guards emitted when using
`jit_guard_known_klass` with rb_cArray, notably opt_aref
* Update yjit/src/core.rs
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'LEGAL')
0 files changed, 0 insertions, 0 deletions