class ChainCalls extends java.lang.Object implements CompilerPass
| Modifier and Type | Class and Description |
|---|---|
private static class |
ChainCalls.CallSite
Records a call site to chain.
|
private class |
ChainCalls.GatherCallSites |
private class |
ChainCalls.GatherFunctions
Determines whether a function always returns this.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<Node> |
badFunctionNodes |
private java.util.List<ChainCalls.CallSite> |
callSites |
private AbstractCompiler |
compiler |
private SimpleDefinitionFinder |
defFinder |
private ChainCalls.GatherFunctions |
gatherFunctions |
private java.util.Set<Node> |
goodFunctionNodes |
| Constructor and Description |
|---|
ChainCalls(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
private final AbstractCompiler compiler
private final java.util.Set<Node> badFunctionNodes
private final java.util.Set<Node> goodFunctionNodes
private final java.util.List<ChainCalls.CallSite> callSites
private SimpleDefinitionFinder defFinder
private ChainCalls.GatherFunctions gatherFunctions
ChainCalls(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treeroot - Top of JS tree