Paweł Wieczorek avatar Paweł Wieczorek committed 2bbbd90 Draft

minor

Comments (0)

Files changed (1)

src/Selen/Compiler/CPS/ClosureConversion.hs

 
 {-------------------------------------------------------------------------
  -- Closure conversion
+ --
+ --
+ -- N      - number of registers
+ -- K      - set of known functions
+ -- E(f)   - set of functions applied in f
+ -- EK(f)  = E(f) `intersection` K
+ -- C(i)   - set of functions that require closure interaction
+ -- FIX(f) - set of functions defined in this same FIX block as f
+ --
+ -- V(0)(f)   = FV(f)
+ -- V(i+1)(f) = V(i)(f) `union` ( Union_[g \in EK(f)]  V(i)(g) )
+ --
+ -- C(0)      = 0
+ -- C(i+1)    = C(i)
+ --            `union` { f | N < |V(i)(f)| }
+ --            `union` { f | C(i) `intersection` E(f) `intersection` FIX(f) != 0 }
  -}
 
 closureConversion :: Ir -> Compiler Ir
 closureConversion = return
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.