Bug 162952 - WebAssembly: support more than one size register
Summary: WebAssembly: support more than one size register
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 165282
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-04 18:23 PDT by Keith Miller
Modified: 2017-03-13 09:43 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2016-10-04 18:23:56 PDT
...
Comment 1 JF Bastien 2016-12-29 23:32:47 PST
In bug #165282 I'm adding code which assumes that all WebAssembly.Instance have the same pinned registers. I'm doing this because wasm->wasm calls are generated at Module time, without knowing which import will be provided at Instance time.

We could instead generate one stub per type of outcall:
 - wasm w/ fast memory -> wasm w/o memory
 - wasm w/ fast memory -> wasm w/ slow memory
 - wasm w/o memory -> wasm w/ fast memory
 - wasm w/o memory -> wasm w/ slow memory
 - wasm w/ slow memory -> wasm w/ fast memory
 - wasm w/ slow memory -> wasm w/o memory

I'm not sure the complexity (and potential for bugs!) are worth it at this point in time.