Skip to content

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Aug 19, 2025

  • ZJIT: Prepare for rb_range_new() calling <=>
  • ZJIT: Mark Insn::NewRange as having side effects

Fixes: Shopify#708

XrXr and others added 2 commits August 19, 2025 14:49
gen_prepare_call_with_gc() was not enough because of the rb_funcall()
usage in range_init().

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Co-authored-by: Max Bernstein <rubybugs@bernsteinbear.com>
@matzbot matzbot requested a review from a team August 19, 2025 19:15
Copy link
Contributor

@tekknolagi tekknolagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good -- we can rewrite to a hypothetical NewRangeFixnum in a pass later

@XrXr XrXr merged commit 6b197de into ruby:master Aug 19, 2025
87 checks passed
@XrXr XrXr deleted the zjit-newnrage-non-leaf branch August 19, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ZJIT: gen_new_range should prepare for non-leaf
3 participants