[wasm] Fix AOT support. (#11291)
commitaa670c98cbea64350d19cf48c4e7e98d42ee2af7
authorZoltan Varga <vargaz@gmail.com>
Sun, 21 Oct 2018 20:44:43 +0000 (21 22:44 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Oct 2018 20:44:43 +0000 (21 22:44 +0200)
treee13274d3a1a58b94f1b324ff634903736423a551
parent6a8a2059bbbe68e183cec14f6c5bc3baeb4ae4cf
[wasm] Fix AOT support. (#11291)

* [wasm] Fix the creation of runtime.js in ninja mode.

* [wasm] Exit with an error code if the emscripten runtime hits an abort.

* [wasm] Error out when mono_wasm_load_runtime () fails too.

* [wasm] Wrap some code in ENVIRONMENT_IS_SHELL.

* [aot] Emit runtime invoke wrappers for up to 40 parameters for bitcode, newly added tests depend on it.

* [aot] Fix a buffer overflow in mini_get_gsharedvt_out_sig_wrapper_signature ().

* [wasm] Remove some filesystem code which is no longer needed.

* [wasm] Disable coop gc on the cross compiler, it effects the generated code.

* [wasm] Use a different random device under wasm so we can override its behavior. This is needed because /dev/random no longer works in emscripten 1.38.13 in JS shells.

* [wasm] Bump emscripten to 1.38.13.

* [wasm] Print a stack in one more abort case.

* [wasm] Add putchar to EXPORTED_FUNCTIONS, llvm-lto seems to create references to it after linking.
configure.ac
mono/mini/aot-compiler.c
mono/mini/mini-generic-sharing.c
mono/utils/mono-rand.c
sdks/builds/wasm.mk
sdks/wasm/Makefile
sdks/wasm/driver.c
sdks/wasm/library_mono.js
sdks/wasm/packager.cs
sdks/wasm/runtime-tests.js