summaryrefslogtreecommitdiff
path: root/src/asmjs/asm_v_wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-08-19 14:55:46 -0700
committerGitHub <noreply@github.com>2020-08-19 14:55:46 -0700
commitb43807a835fc878e5eefcb8b4a18aff62d7f4540 (patch)
tree0954d692b18b5f437395e1dabe67ec74b81a43a3 /src/asmjs/asm_v_wasm.cpp
parent11ec7c544e60944146e7e51b82c60bbc9d169af2 (diff)
downloadbinaryen-b43807a835fc878e5eefcb8b4a18aff62d7f4540.tar.gz
binaryen-b43807a835fc878e5eefcb8b4a18aff62d7f4540.tar.bz2
binaryen-b43807a835fc878e5eefcb8b4a18aff62d7f4540.zip
wasm-emscripten-finalize: Make EM_ASM modifications optional (#3044)
wasm-emscripten-finalize renames EM_ASM calls to have the signature in the name. This isn't actually useful - emscripten doesn't benefit from that. I think it was optimized in fastcomp, and in upstream we copied the general form but not the optimizations, and then EM_JS came along which is easier to optimize anyhow. This PR makes those changes optional: when not doing them, it just leaves the calls as they are. Emscripten will need some changes to handle that, but those are simple. For convenience this adds a flag to "minimize wasm changes". The idea is that this flag avoids needing a double-roll or other inconvenience as the changes need to happen in tandem on the emscripten side. The same flag can be reused for later changes similar to this one. When they are all done we can remove the flag. (Note how the code ifdefed by the flag can be removed once we no longer need the old way of doing things - that is, the new approach is simpler on the binaryen side). See #3043
Diffstat (limited to 'src/asmjs/asm_v_wasm.cpp')
0 files changed, 0 insertions, 0 deletions