<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[195859] trunk/Websites/webkit.org</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/195859">195859</a></dd>
<dt>Author</dt> <dd>fpizlo@apple.com</dd>
<dt>Date</dt> <dd>2016-01-29 15:43:56 -0800 (Fri, 29 Jan 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Clean up the B3 documentation a bit
https://bugs.webkit.org/show_bug.cgi?id=153678
Reviewed by Saam Barati.
* docs/b3/index.html: Fix some links and fix small issues.
* docs/b3/intermediate-representation.html: Clean up some text and fix small issues.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkWebsiteswebkitorgChangeLog">trunk/Websites/webkit.org/ChangeLog</a></li>
<li><a href="#trunkWebsiteswebkitorgdocsb3indexhtml">trunk/Websites/webkit.org/docs/b3/index.html</a></li>
<li><a href="#trunkWebsiteswebkitorgdocsb3intermediaterepresentationhtml">trunk/Websites/webkit.org/docs/b3/intermediate-representation.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkWebsiteswebkitorgChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Websites/webkit.org/ChangeLog (195858 => 195859)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/ChangeLog        2016-01-29 23:42:43 UTC (rev 195858)
+++ trunk/Websites/webkit.org/ChangeLog        2016-01-29 23:43:56 UTC (rev 195859)
</span><span class="lines">@@ -1,5 +1,15 @@
</span><span class="cx"> 2016-01-29 Filip Pizlo <fpizlo@apple.com>
</span><span class="cx">
</span><ins>+ Clean up the B3 documentation a bit
+ https://bugs.webkit.org/show_bug.cgi?id=153678
+
+ Reviewed by Saam Barati.
+
+ * docs/b3/index.html: Fix some links and fix small issues.
+ * docs/b3/intermediate-representation.html: Clean up some text and fix small issues.
+
+2016-01-29 Filip Pizlo <fpizlo@apple.com>
+
</ins><span class="cx"> B3 should have documentation
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=153658
</span><span class="cx">
</span></span></pre></div>
<a id="trunkWebsiteswebkitorgdocsb3indexhtml"></a>
<div class="modfile"><h4>Modified: trunk/Websites/webkit.org/docs/b3/index.html (195858 => 195859)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/docs/b3/index.html        2016-01-29 23:42:43 UTC (rev 195858)
+++ trunk/Websites/webkit.org/docs/b3/index.html        2016-01-29 23:43:56 UTC (rev 195859)
</span><span class="lines">@@ -50,7 +50,8 @@
</span><span class="cx">
</span><span class="cx"> <h2>B3 IR</h2>
</span><span class="cx">
</span><del>- <p>Clients of B3 usually interact with it using B3 IR. It's C-like, in the sense that it
</del><ins>+ <p>Clients of B3 usually interact with it using
+ <a href="intermediate-representation.html">B3 IR</a>. It's C-like, in the sense that it
</ins><span class="cx"> models heap references as integers and does not attempt to verify memory accesses. It
</span><span class="cx"> enforces static single assignment, or SSA for short. An SSA program will contain only one
</span><span class="cx"> assignment to each variable, which makes it trivial to trace from a use of a variable to
</span><span class="lines">@@ -64,8 +65,8 @@
</span><span class="cx"> being generated and for callees of the procedure's callsites. B3 also makes it easy to
</span><span class="cx"> just emit a C call. There's an opcode for that.</p>
</span><span class="cx">
</span><del>- <p>See <a href="/documentation/b3/intermediate-representation.html">the IR documentation</a>
- for more info.</p>
</del><ins>+ <p>See <a href="intermediate-representation.html">the IR documentation</a> for more
+ info.</p>
</ins><span class="cx">
</span><span class="cx"> <p>Here's an example of the IR from the example above:</p>
</span><span class="cx">
</span><span class="lines">@@ -95,7 +96,8 @@
</span><span class="cx">
</span><span class="cx"> <h2>Air</h2>
</span><span class="cx">
</span><del>- <p>Air, or Assembly IR, is the way that B3 represents the machine instruction sequence prior
</del><ins>+ <p><a href="assembly-intermediate-representation.html">Air</a>, or Assembly IR, is the way
+ that B3 represents the machine instruction sequence prior
</ins><span class="cx"> to code generation. Air is like assembly, except that in addition to registers it has
</span><span class="cx"> temporaries, and in addition to the native address forms it has abstract ones like "stack"
</span><span class="cx"> (an abstract stack slot) and "callArg" (an abstract location in the outgoing call argument
</span></span></pre></div>
<a id="trunkWebsiteswebkitorgdocsb3intermediaterepresentationhtml"></a>
<div class="modfile"><h4>Modified: trunk/Websites/webkit.org/docs/b3/intermediate-representation.html (195858 => 195859)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Websites/webkit.org/docs/b3/intermediate-representation.html        2016-01-29 23:42:43 UTC (rev 195858)
+++ trunk/Websites/webkit.org/docs/b3/intermediate-representation.html        2016-01-29 23:43:56 UTC (rev 195859)
</span><span class="lines">@@ -60,9 +60,11 @@
</span><span class="cx">
</span><span class="cx"> <p>Variables, and the instructions that define them, are represented using the Value object.
</span><span class="cx"> The Value object has a return type, an opcode, and zero or more children. Children are
</span><del>- references to other Values. Values also have a unique 32-bit index that is used as the
- name. Those values are used as input to the instruction that computes this value. For
- example:</p>
</del><ins>+ references to other Values. Those values are used as input to the instruction that
+ computes this value.</p>
+ <p>Values also have a unique 32-bit index that is used as the name.</p>
+
+ <p>Example:</p>
</ins><span class="cx">
</span><span class="cx"> <pre><code>Int32 @3 = Add(@1, @2)</code></pre>
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>