Skip to content

ZJIT: Bail out of HIR translation if we can't handle a send flag #13182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

tekknolagi
Copy link
Contributor

No description provided.

@matzbot matzbot requested a review from a team April 25, 2025 16:48
@k0kubun k0kubun merged commit e0545a0 into ruby:master Apr 25, 2025
86 checks passed
assert_compile_fails("test", ParseError::UnknownOpcode("invokesuperforward".into()))
}

// TODO(max): Figure out how to generate a call with OPT_SEND flag
Copy link
Member

Choose a reason for hiding this comment

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

This should be impossible. The flag is only added for calls like .send during processing, and no call info should start with this flag. So since ZJIT doesn't add this flag we should never see it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, it never makes it into the bytecode?

Copy link
Member

Choose a reason for hiding this comment

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

Right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Incredible, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants