diff options
| author | Stan Lo <stan.lo@shopify.com> | 2025-08-07 23:38:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 15:38:02 -0700 |
| commit | d25eb1eb5c05ac1cadd9cc03ddd37f8eda57d7f1 (patch) | |
| tree | fca436c5db8088cdaa1397e65d9831953d012583 /ruby_parser.c | |
| parent | 96c9e1e93a77e0aeedfc717a4abf03b3bfcd5169 (diff) | |
ZJIT: Optimize class guards by directly reading klass field (#14136)
Replace `rb_yarv_class_of` call with:
- a constant check for special constants (nil, fixnums, symbols, etc)
- a check for false
- direct memory read at offset 8 for regular heap objects for the class check
Diffstat (limited to 'ruby_parser.c')
0 files changed, 0 insertions, 0 deletions
