4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="generator" content="AsciiDoc 8.6.9">
6 <title>Globalize</title>
7 <link rel="stylesheet" href="./asciidoc.css" type="text/css">
8 <link rel="stylesheet" href="./pygments.css" type="text/css">
11 <script type="text/javascript" src="./asciidoc.js"></script>
12 <script type="text/javascript">
17 <link rel="stylesheet" href="./mlton.css" type="text/css">
19 <body class="article">
21 <div id="banner-home">
22 <a href="./Home">MLton 20180207</a>
30 <div class="sectionbody">
31 <div class="paragraph"><p><a href="Globalize">Globalize</a> is an analysis pass for the <a href="SXML">SXML</a>
32 <a href="IntermediateLanguage">IntermediateLanguage</a>, invoked from <a href="ClosureConvert">ClosureConvert</a>.</p></div>
36 <h2 id="_description">Description</h2>
37 <div class="sectionbody">
38 <div class="paragraph"><p>This pass marks values that are constant, allowing <a href="ClosureConvert">ClosureConvert</a>
39 to move them out to the top level so they are only evaluated once and
40 do not appear in closures.</p></div>
44 <h2 id="_implementation">Implementation</h2>
45 <div class="sectionbody">
46 <div class="ulist"><ul>
49 <a href="https://github.com/MLton/mlton/blob/master/mlton/closure-convert/globalize.sig"><span class="monospaced">globalize.sig</span></a>
54 <a href="https://github.com/MLton/mlton/blob/master/mlton/closure-convert/globalize.fun"><span class="monospaced">globalize.fun</span></a>
61 <h2 id="_details_and_notes">Details and Notes</h2>
62 <div class="sectionbody">
63 <div class="paragraph"><p></p></div>
67 <div id="footnotes"><hr></div>
69 <div id="footer-text">
71 <div id="footer-badges">