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

[Epic]: Fix jitting of generator functions #6988

Open
5 tasks
ShortDevelopment opened this issue Apr 23, 2024 · 4 comments
Open
5 tasks

[Epic]: Fix jitting of generator functions #6988

ShortDevelopment opened this issue Apr 23, 2024 · 4 comments

Comments

@rhuanjl
Copy link
Collaborator

rhuanjl commented May 2, 2024

I actually think all those open issues/bugs are hitting the same underlying error but doing different things after hence not all the same crash message.

I've added a testcase for what (I think is) the underlying issue of all those in #6990 as well as disabling Generator Function Jit BUT enabling the safer Generator Loop Body Jit.

@rhuanjl
Copy link
Collaborator

rhuanjl commented May 3, 2024

I haven't gone through them all but I think there are 30+ issues open that relate to this. Many of them are dups but it's hard to confirm how many.

IF we disable generator JIT and enable the simpler loop-body-jit not sure what to do with all these issues whether to close them or keep them for ref if we ever re-visit generator JIT - my loop-body-jit PR includes a test case that I think captures the issue behind 5+ of the relevant issues but not sure about all of them.

@ppenzin
Copy link
Member

ppenzin commented May 28, 2024

A scenario to entertain: adding reproducers for these issues to the suite and close them if they pass with current loop-only JITing, then we will have a set of tests to clear when we reenable full function JITing.

@rhuanjl
Copy link
Collaborator

rhuanjl commented May 30, 2024

A scenario to entertain: adding reproducers for these issues to the suite and close them if they pass with current loop-only JITing, then we will have a set of tests to clear when we reenable full function JITing.

I added a reduced test case for one point that I think underpins a lot of the issues here: https://github.com/chakra-core/ChakraCore/blob/master/test/es6GeneratorJit/newtest.js

I didn't want to multiply equivalent cases; though it's hard to always work out exactly what is causing the issue.

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

No branches or pull requests

3 participants