The goal is to design and implement a generic wrapper for WebAssembly functions so that this wrapper can be used to call arbitrary WebAssembly functions from JavaScript.
-- You received this message because: 1. The project was configured to send all issue notifications to this address
[wasm] Use generic js-to-wasm wrapper for 0 and 1 param cases
A new field for signature type was added to WasmExportedFunctionData. It is set to 0 or 1 depending on the parameter count. (It's set and being used only in 0 and 1 parameter cases.)
Added new JS tests for 1 parameter wasm functions.
[wasm] Reverse the evaluation of params in js-to-wasm generic wrapper
The parameters should be processed and evaluated in an increasing order (starting with the 1st param). Before we started with the last (n-th) parameter which was not correct.
[profiler] Include the generic js-to-wasm builtin in profiles
This CL fixes two things: 1) It properly creates code entries for the generic js-to-wasm builtin (others are left out because we don't want to include all builtins in profiles). 2) It includes js-to-wasm frames in profiles. The generic js-to-wasm builtin will map to that frame type in the future (see referenced bug). js-to-wasm frames are currently included because they are wrongly mapped to OPTIMIZED frames by the SafeStackTraceIterator.
commit b206bdd0e0441ce2edb9a70fc6e0ddb91a4de105 Author: Andreas Haas <ah...@chromium.org> Date: Tue Oct 13 09:27:45 2020
[testrunner] enable --wasm-generic-wrapper for nooptimization variant
The generic wrapper will be the baseline variant of the JavaScript-to- WebAssembly wrapper. Enabling it in the nooptimization variant gives it test coverage.
At the end of the internship the wrapper was able to deal with an arbitrary number of parameters of primitive types (i32, i64, f32, f64), and with up to 1 return value of primitive type.
Git Watcher via monorail
unread,
Sep 1, 2022, 9:36:27 AM9/1/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message