Bug 169218
Summary: | WebAssembly: Pass in the memory mode when using the WebAssembly.instantiate API | ||
---|---|---|---|
Product: | WebKit | Reporter: | Saam Barati <saam> |
Component: | JavaScriptCore | Assignee: | Saam Barati <saam> |
Status: | NEW | ||
Severity: | Normal | CC: | benjamin, fpizlo, ggaren, gskachkov, jfbastien, keith_miller, mark.lam, msaboff, ticaiolima, ysuzuki |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Saam Barati
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |