# Pastebin jhXLg1EE ┌────────────────────────────┬─────────────────────┬─────────────────┬────────────────────────────────────────────────┐ │ Where │ File │ Size │ What │ ├────────────────────────────┼─────────────────────┼─────────────────┼────────────────────────────────────────────────┤ │ MoarVM │ build/setup.pm │ +32 lines │ Emscripten build target │ ├────────────────────────────┼─────────────────────┼─────────────────┼────────────────────────────────────────────────┤ │ MoarVM │ Configure.pl │ +6 lines │ Recognize the wasm/emscripten triple │ ├────────────────────────────┼─────────────────────┼─────────────────┼────────────────────────────────────────────────┤ │ MoarVM │ build/Makefile.in │ +5 lines │ Wire the shim into the build │ ├────────────────────────────┼─────────────────────┼─────────────────┼────────────────────────────────────────────────┤ │ MoarVM 3rdparty/libuv │ src/uv-wasm.c │ 564 lines (new) │ The libuv shim (event loop, fs, threads→no-op) │ ├────────────────────────────┼─────────────────────┼─────────────────┼────────────────────────────────────────────────┤ │ MoarVM 3rdparty/dyncall │ dyncall-wasm-stub.c │ 87 lines (new) │ NativeCall stub │ ├────────────────────────────┼─────────────────────┼─────────────────┼────────────────────────────────────────────────┤ │ MoarVM 3rdparty/libtommath │ bn_mp_set_double.c │ 1 line │ Add wasm to the IEEE-754 arch guard │ └────────────────────────────┴─────────────────────┴─────────────────┴────────────────────────────────────────────────┘