Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / Globalize
CommitLineData
7f918cf1
CE
1<!DOCTYPE html>\r
2<html lang="en">\r
3<head>\r
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r
5<meta name="generator" content="AsciiDoc 8.6.9">\r
6<title>Globalize</title>\r
7<link rel="stylesheet" href="./asciidoc.css" type="text/css">\r
8<link rel="stylesheet" href="./pygments.css" type="text/css">\r
9\r
10\r
11<script type="text/javascript" src="./asciidoc.js"></script>\r
12<script type="text/javascript">\r
13/*<![CDATA[*/\r
14asciidoc.install();\r
15/*]]>*/\r
16</script>\r
17<link rel="stylesheet" href="./mlton.css" type="text/css">\r
18</head>\r
19<body class="article">\r
20<div id="banner">\r
21<div id="banner-home">\r
22<a href="./Home">MLton 20180207</a>\r
23</div>\r
24</div>\r
25<div id="header">\r
26<h1>Globalize</h1>\r
27</div>\r
28<div id="content">\r
29<div id="preamble">\r
30<div class="sectionbody">\r
31<div class="paragraph"><p><a href="Globalize">Globalize</a> is an analysis pass for the <a href="SXML">SXML</a>\r
32<a href="IntermediateLanguage">IntermediateLanguage</a>, invoked from <a href="ClosureConvert">ClosureConvert</a>.</p></div>\r
33</div>\r
34</div>\r
35<div class="sect1">\r
36<h2 id="_description">Description</h2>\r
37<div class="sectionbody">\r
38<div class="paragraph"><p>This pass marks values that are constant, allowing <a href="ClosureConvert">ClosureConvert</a>\r
39to move them out to the top level so they are only evaluated once and\r
40do not appear in closures.</p></div>\r
41</div>\r
42</div>\r
43<div class="sect1">\r
44<h2 id="_implementation">Implementation</h2>\r
45<div class="sectionbody">\r
46<div class="ulist"><ul>\r
47<li>\r
48<p>\r
49<a href="https://github.com/MLton/mlton/blob/master/mlton/closure-convert/globalize.sig"><span class="monospaced">globalize.sig</span></a>\r
50</p>\r
51</li>\r
52<li>\r
53<p>\r
54<a href="https://github.com/MLton/mlton/blob/master/mlton/closure-convert/globalize.fun"><span class="monospaced">globalize.fun</span></a>\r
55</p>\r
56</li>\r
57</ul></div>\r
58</div>\r
59</div>\r
60<div class="sect1">\r
61<h2 id="_details_and_notes">Details and Notes</h2>\r
62<div class="sectionbody">\r
63<div class="paragraph"><p></p></div>\r
64</div>\r
65</div>\r
66</div>\r
67<div id="footnotes"><hr></div>\r
68<div id="footer">\r
69<div id="footer-text">\r
70</div>\r
71<div id="footer-badges">\r
72</div>\r
73</div>\r
74</body>\r
75</html>\r