Skip to content
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

YJIT: Simplify code for RB_SPECIAL_CONST_P #6795

Merged
merged 1 commit into from Nov 23, 2022

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Nov 23, 2022

Since #6599, RUBY_IMMEDIATE_MASK overlaps Qnil as well, not just Qfalse. It seems confusing to check obj <= Qnil when you already checked the Qnil case using RUBY_IMMEDIATE_MASK.

So this PR changes the obj <= Qnil check to obj == Qfalse. The same refactoring has already been already applied to the interpreter #6759.

@k0kubun k0kubun marked this pull request as ready for review November 23, 2022 04:31
@matzbot matzbot requested a review from a team November 23, 2022 04:31
@noahgibbs
Copy link
Contributor

LGTM

@maximecb maximecb merged commit fe2bed6 into ruby:master Nov 23, 2022
@maximecb maximecb deleted the yjit-special-const branch November 23, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants