2008-08-02 00:31:43 -04:00
|
|
|
! Copyright (C) 2008 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: kernel namespaces search-dequeues
|
|
|
|
compiler.tree
|
|
|
|
compiler.tree.def-use
|
2008-08-03 06:01:05 -04:00
|
|
|
compiler.tree.escape-analysis.graph
|
2008-08-02 00:31:43 -04:00
|
|
|
compiler.tree.escape-analysis.allocations
|
|
|
|
compiler.tree.escape-analysis.recursive
|
|
|
|
compiler.tree.escape-analysis.branches
|
|
|
|
compiler.tree.escape-analysis.nodes
|
2008-08-03 06:01:05 -04:00
|
|
|
compiler.tree.escape-analysis.simple ;
|
2008-08-02 00:31:43 -04:00
|
|
|
IN: compiler.tree.escape-analysis
|
|
|
|
|
|
|
|
: escape-analysis ( node -- node )
|
|
|
|
H{ } clone allocations set
|
2008-08-03 06:01:05 -04:00
|
|
|
<graph> slot-graph set
|
|
|
|
dup (escape-analysis)
|
|
|
|
compute-escaping-allocations ;
|