[Webkit-unassigned] [Bug 168264] New: WebAssembly: make code position independent
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 13 16:14:09 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=168264
Bug ID: 168264
Summary: WebAssembly: make code position independent
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jfbastien at apple.com
CC: fpizlo at apple.com, jfbastien at apple.com,
keith_miller at apple.com, mark.lam at apple.com,
msaboff at apple.com, sbarati at apple.com
Blocks: 166480, 166481
We'll want to be able to save a WebAssembly.Module's code in IndexDB (#166481) and postMessage (#166480) the WebAssembly.Module cheaply to other workers without having to patch pointers and duplicate physical pages used for code. This allows us to instantiate the same module waaayyy better.
Right now our implementation has some pointers baked in: &VM.topInstance, and functions for back traces. We'll want to do away with this.
The easiest and fastest thing is probably to store the topInstance in a TLS slot, and then change it when entering js->wasm, doing wasm->wasm calls, and when in a worker (nothing to do here really, it's the same mechanism).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170214/5cf0aa95/attachment-0001.html>
More information about the webkit-unassigned
mailing list