mind sharing a link or two on the native code generation bit? I'm far behind from the scene but still curious.
There's also a project to add a static JS compiler, but it's been in development hell for the last 3 years: https://github.com/facebook/hermes/tree/static_h