-
Notifications
You must be signed in to change notification settings - Fork 185
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
Update feature flag for stack switching proposal #436
Conversation
Thanks for the PR, @pufferfish101007! @tlively Do you know who from V8 would be a good person to verify this? Likely @fgmccabe!? |
The experimental-wasm-stack-switching was the one originally used to enable JSPI. We implemented the experimental-wasm-jspi flag to avoid confusion; and we kept the original flag as a synonym. |
@fgmccabe Note that the flag is documented to be used for the stack switching proposal though:
Should we update the comment then to avoid further confusion? (I was confused by this as well a few weeks ago.) |
We could. Not sure it is worth it though: |
What's the verdict here? Should we close this PR for now? |
We should at least remove the mention that |
@Liedtke Could you make the change, as you're close? Happy to merge once you tell me. Thanks! |
#444 is merged now, so what do we do with this present PR?
So, can it? (Sorry, I'm not involved enough to have an answer.) |
We also have a conflict now of course… |
Well, maybe that was the misunderstanding, based on your request for a PR I interpreted it as "it doesn't make sense to display 'this feature exists behind the following flag' if you can't do anything useful when setting that flag." Probably we want to "publish" feature flags here once they are in a state where you can start experimenting with them? (Which wouldn't require having the full proposal implemented but at least some part that is usable and testable.) |
Alright, so closing this PR then. Thank you! |
It seems that the v8 flag listed on https://webassembly.org/roadmap for the stack switching proposal is incorrect; the
--experimental-wasm-stack-switching
flag exists, but it seems to be unused (note that all references to stack_switching flags are different v8 flags relating to jspi [I think]). However, the--experimental-wasm-wasmfx
flag has been added recently, with an incomplete implementation (not yet landed in stable chrome as far as I can tell).#400 says that there was an in-progress implementation of stack switching back in September, but as far as I can tell this isn't correct?
This pull request updates the listed feature flags for the stack switching proposal... it's difficult to test these because the change was made recently enough to not be in stable releases yet, but hopefully it's correct now. (And hopefully I haven't completely misunderstood the whole situation.)