Open
Bug 2032546
Opened 4 months ago
Updated 4 months ago
Implement switch
Categories
(Core :: JavaScript: WebAssembly, task, P3)
Core
JavaScript: WebAssembly
Tracking
()
NEW
People
(Reporter: rhunt, Unassigned)
References
(Blocks 1 open bug)
Details
A switch is an optimized suspend and resume pair. The resume must have a switch handler which is searched for by the switch effect. Everything up until the matching handler is suspended into a new continuation object. Then the continuation we're switching to is resumed (starting at the matched handler) and passed the suspended continuation as a parameter.
This is supposed to be faster than just a normal suspend/resume pair. I'm not sure the best way to implement it. We might need to fuse the masm routines for EmitSuspend and EmitResume together.
You need to log in
before you can comment on or make changes to this bug.
Description
•