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: Read rb_num_t as usize early #6606

Merged
merged 1 commit into from Oct 21, 2022
Merged

YJIT: Read rb_num_t as usize early #6606

merged 1 commit into from Oct 21, 2022

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Oct 21, 2022

This patch makes sure that we're not accidentally reading rb_num_t instruction arguments as VALUE and accidentally baking them into code and marking them. Some of these are simply moving the cast earlier, but some of these avoid potential problems for flag and ID arguments.

Follow-up for 39f7edd.

This patch makes sure that we're not accidentally reading rb_num_t
instruction arguments as VALUE and accidentally baking them into
code and marking them. Some of these are simply moving the cast earlier,
but some of these avoid potential problems for flag and ID arguments.

Follow-up for 39f7edd.
@matzbot matzbot requested a review from a team October 21, 2022 19:22
@noahgibbs
Copy link
Contributor

LGTM

@XrXr XrXr merged commit 8bbcb75 into ruby:master Oct 21, 2022
@XrXr XrXr deleted the yjit-usize-args branch October 21, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants