You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emscripten JS trampolines do not interact well with wasm stack switching #106213
There is a WIP proposal to enable webassembly stack switching which have been implemented in v8. https://github.com/WebAssembly/js-promise-integration
It is not possible to switch stacks that contain JS frames so the Emscripten JS trampolines that allow calling functions with the wrong number of arguments don't work in this case. However, the js-promise-integration proposal requires the type reflection for Wasm/JS API proposal, which allows us to actually count the number of arguments a function expects. I propose that for better compatibility with stack switching, we check if type reflection is available, and if so we use a switch block to decide the appropriate signature. If type reflection is unavailable, we should use the current EMJS trampoline.
Activity
gh-106213: Make Emscripten trampolines work with JSPI (GH-106219)
pythongh-106213: Make Emscripten trampolines work with JSPI (pythonGH…
pythongh-106213 Shorten Emscripten trampolines by a little
gh-106213: Shorten Emscripten wasm-gc trampoline by a little (#133984)
pythongh-106213: Shorten Emscripten wasm-gc trampoline by a little (p…
[3.14] gh-106213: Shorten Emscripten wasm-gc trampoline by a little (G…
pythongh-106213: Shorten Emscripten wasm-gc trampoline by a little (p…
pythongh-106213: Shorten Emscripten wasm-gc trampoline by a little (p…
pythongh-106213: Shorten Emscripten wasm-gc trampoline by a little (p…