NEW 169218
WebAssembly: Pass in the memory mode when using the WebAssembly.instantiate API
https://bugs.webkit.org/show_bug.cgi?id=169218
Summary WebAssembly: Pass in the memory mode when using the WebAssembly.instantiate API
Saam Barati
Reported 2017-03-06 14:23:55 PST
We could split up module parsing to: First parse the header, then parse the functions. After parsing the header, we check if there is a memory import and an import object. If we can lookup the memory field in the import object without side effects, we could look it up, and then pass its mode it into function parsing. This would prevent the possibility of a recompile.
Attachments
Note You need to log in before you can comment on or make changes to this bug.