summaryrefslogtreecommitdiff
path: root/test/revision
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2016-06-02 14:30:30 -0700
committerDerek Schuff <dschuff@chromium.org>2016-06-02 14:30:30 -0700
commitd4dc216888d5028f41e6189e65001694e49a66c2 (patch)
tree35ac5962bedb07fa732b34b62f7b7c3d68280ce4 /test/revision
parentd595e89003dc3636952de4c561679e3a077e6015 (diff)
downloadbinaryen-d4dc216888d5028f41e6189e65001694e49a66c2.tar.gz
binaryen-d4dc216888d5028f41e6189e65001694e49a66c2.tar.bz2
binaryen-d4dc216888d5028f41e6189e65001694e49a66c2.zip
Generate thunks for address-taken imports (#554)
Under emscripten, C code can take the address of a function implemented in Javascript (which is exposed via an import in wasm). Because imports do not have linear memory address in wasm, we need to generate a thunk to be the target of the indirect call; it call the import directly. This is facilited by a new .s directive (.functype) which declares the types of functions which are declared but not defined. Fixes https://github.com/WebAssembly/binaryen/issues/392
Diffstat (limited to 'test/revision')
0 files changed, 0 insertions, 0 deletions