Bug 169218 - WebAssembly: Pass in the memory mode when using the WebAssembly.instantiate API
Summary: WebAssembly: Pass in the memory mode when using the WebAssembly.instantiate API
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-06 14:23 PST by Saam Barati
Modified: 2017-03-06 14:23 PST (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 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.