[RFC] JSIR: A High-Level IR for JavaScript

This RFC introduces JSIR, a high-level IR for JavaScript: JSIR preserves all information from the AST and supports high-fidelity round-trip between source ↔ AST ↔ JSIR; JSIR uses MLIR regions to represent control flow structures; JSIR supports dataflow analysis. JSIR is developed and deployed in production at Google for code analysis and transform use cases. JSIR is open source here: GitHub - google/jsir: Next-generation JavaScript analysis tooling · GitHub. Motivation Industry trend of bui...

LLVM Discussion Forums

I came across this project in the last couple of days too. Being able to decompile from Hermes bytecode sounds awesome.

Here's the repo: https://github.com/google/jsir (it seems not everything is public).

Here's a presentation about it: https://www.youtube.com/watch?v=SY1ft5EXI3I (linked in from the repo)

GitHub - google/jsir: Next-generation JavaScript analysis tooling

Next-generation JavaScript analysis tooling. Contribute to google/jsir development by creating an account on GitHub.

GitHub