Skip to content

Commit

Permalink
more details
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtaco committed Dec 5, 2012
1 parent 2d60313 commit ad2b1a0
Show file tree
Hide file tree
Showing 3 changed files with 842 additions and 77 deletions.
20 changes: 15 additions & 5 deletions TAME.md
Expand Up @@ -311,24 +311,34 @@ while x3

<img src="/maxtaco/coffee-script/raw/master/media/rotate1.png" width=650 />

* After Step 2.1, nodes in blue are marked with **A**.
* After Step 2.1, nodes in blue are marked with **A**. Recall, Step 2.1 traces
upwards from all `await` blocks.

<img src="/maxtaco/coffee-script/raw/master/media/rotate2.png" width=650 />

* After Step 2.2, nodes in purple are marked with **L**.
* After Step 2.2, nodes in purple are marked with **L**. Recall, Step 2.2 floods
downwards from any any loops marked with **A**.

<img src="/maxtaco/coffee-script/raw/master/media/rotate3.png" width=650 />

* After Step 2.3, nodes in yellow are marked with **P**
* After Step 2.3, nodes in yellow are marked with **P**. Recall, Step 2.3
traces upwards from any jumps marked with **L**.

<img src="/maxtaco/coffee-script/raw/master/media/rotate4.png" width=650 />

* The green nodes are those marked with **A** or **P**.
* The green nodes are those marked with **A** or **P**. They are "marked"
for rotations in the next step.

<img src="/maxtaco/coffee-script/raw/master/media/rotate5.png" width=650 />

* In Step 3, rotate all marked nodes AST nodes. This rotation
introduces the new yellow `block` nodes in the graph, and attaches
introduces the new orange `block` nodes in the graph, and attaches
them to pivot nodes as _continuation_ blocks.

<img src="/maxtaco/coffee-script/raw/master/media/post-rotate.png" width=650 />

* To focus on how pivots and continuations are actually output, we can look
at this portion of the AST, introduced after Step 3:

![detail](/maxtaco/coffee-script/raw/master/media/detail.png)

Binary file added media/detail.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad2b1a0

Please sign in to comment.