Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ZJIT: Codegen for defined?(yield) #13718

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 2 commits into from
Jun 27, 2025
Merged

Conversation

XrXr
Copy link
Member

@XrXr XrXr commented Jun 26, 2025

  • ZJIT: Codegen for defined?(yield)

    Lots of stdlib methods such as Integer#times and Kernel#then use this,
    so at least this will make writing tests slightly easier.

  • ZJIT: Use Display for printout when codegen for instruction fails

    It's nicer since e.g. you get text representation of enums like
    defined_type instead of just a number.

@matzbot matzbot requested a review from a team June 26, 2025 16:40
@XrXr XrXr force-pushed the zjit-defined-yield branch from 164f0e2 to ae66677 Compare June 26, 2025 16:45
@XrXr XrXr enabled auto-merge (rebase) June 27, 2025 12:25
auto-merge was automatically disabled June 27, 2025 12:35

Rebase failed

XrXr added 2 commits June 27, 2025 21:53
It's nicer since e.g. you get text representation of enums like
`defined_type` instead of just a number.
Lots of stdlib methods such as Integer#times and Kernel#then use this,
so at least this will make writing tests slightly easier.
@XrXr XrXr force-pushed the zjit-defined-yield branch from 5cf927e to e23af61 Compare June 27, 2025 12:53
@XrXr XrXr enabled auto-merge (rebase) June 27, 2025 12:54
Copy link

launchable-app bot commented Jun 27, 2025

Tests Failed

✖️no tests failed ✔️62033 tests passed(1 flake)

@XrXr XrXr merged commit 0828dff into ruby:master Jun 27, 2025
91 of 93 checks passed
@XrXr XrXr deleted the zjit-defined-yield branch June 27, 2025 15:03
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.

2 participants