jon.recoil.org

Module Flambda2_to_jsir.To_jsir_static_const

Bind a fresh variable to the result of Static_const.t, and map the symbol to this new variable in the environment, for "block-like" constants (i.e. not Set_of_closures).

See Static_const.match_against_bound_static_pattern

Prepare a static block of code to be translated: create a new block and parameter variables and add them to the environment, and also add any value or function slots that are used into the environment.