| 1 |
= Globalize |
| 2 |
|
| 3 |
<<Globalize#>> is an analysis pass for the <<SXML#>> |
| 4 |
<<IntermediateLanguage#>>, invoked from <<ClosureConvert#>>. |
| 5 |
|
| 6 |
== Description |
| 7 |
|
| 8 |
This pass marks values that are constant, allowing <<ClosureConvert#>> |
| 9 |
to move them out to the top level so they are only evaluated once and |
| 10 |
do not appear in closures. |
| 11 |
|
| 12 |
== Implementation |
| 13 |
|
| 14 |
* https://github.com/MLton/mlton/blob/master/mlton/closure-convert/globalize.sig[`globalize.sig`] |
| 15 |
* https://github.com/MLton/mlton/blob/master/mlton/closure-convert/globalize.fun[`globalize.fun`] |
| 16 |
|
| 17 |
== Details and Notes |
| 18 |
|
| 19 |
{empty} |