5 Things You Might Not Know about Developing Self-Hosted Code
SMRTR summary
SpiderMonkey uses self-hosted JavaScript code to implement some intrinsic functions, benefiting from JIT optimizations. Developers working with self-hosted code need to build after making changes to see them take effect. Debugging tools like dbg() are available in debug builds. The code can be explored using getSelfHostedValue() in the JS Shell. Custom self-hosted functions can be defined and made available in the JS and XPC shells using JS_DefineFunctions().
SMRTR provides this summary for quick context. The original article belongs to Daily.dev.
Read the original article