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

remove need for generator_init() #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ratchetfreak
Copy link

This is done by adding making a Generator_Frame for the generator_stack which holds the rsp to restore to instead of requiring a dummy generator at the bottom.

The only reason the initial bottom level Generator existed was to hold that rsp, let's make it explicitly stored.

Technically you could reuse the Generator's rsp field for this, but then I'd have to worry about reentrancy too much.

This is done by adding making a stack frame for the generator_stack which holds
the rsp to restore to instead of requiring a dummy generator at the bottom
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.

1 participant