Description
We're rolling out use of signal handlers for WebAssembly Out-of-Bounds checks in V8 6.2.
We've intentionally left the feature off by default in V8, and will be turning it on Chrome side via features.
The reason is that embedders (for instance node.js), may have their own signal handlers which may interact poorly.
The feature is a big win for WebAssembly performance on 64-bit systems 25%-30% speed-up.
To work in node.js, we need someone knowledgeable about the signal handlers in the system to help us.
If node has a signal handler of its own, it's not too much harder than adding:
--wrap-trap-handler
And then be sure to use the implementation we we provide with V8:
v8::V8::RegisterDefaultSignalHandler()
(Eric CC'ed can help with the particulars)
If there's already a handler (or if some modules have them?), things might be more complex, but not too bad.
Eric Holk is a good contact for this feature on the WebAssembly side.