Bug 169218

Summary: WebAssembly: Pass in the memory mode when using the WebAssembly.instantiate API
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: 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
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.