Skip to main content

Module codegen

Module codegen 

Source
Expand description

Code generation from HIR to JavaScript.

§Design

The codegen is deterministic: the same HIR always produces the same output. This is critical for immutability verification via hashing.

§References

  • ECMA-262 (ES2022) - JavaScript language specification
  • Lattner & Adve (2004) “LLVM: A Compilation Framework”

Functions§

generate
Generate JavaScript code from a module.