src: enable V8's WASM trap handlers
This uses SIGSEGV handlers to catch WASM out of bound (OOB) memory accesses instead of inserting OOB checks inline, resulting in a 25%-30% speed increase.
Note that installing a custom SIGSEGV handler will break this, resulting in potentially scary behaviour. Users should use node::RegisterSignalHandler instead.
Refs: https://github.com/nodejs/node/issues/14927
Closes #14927 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines