|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.caja.ancillary.opt.ConstantPooler
public class ConstantPooler
Collects frequently used literals, e.g. long strings and the like, into a constant pool at the top of each top level function.
Nested Class Summary | |
---|---|
private static class |
ConstantPooler.LitVal
|
Constructor Summary | |
---|---|
ConstantPooler()
|
Method Summary | |
---|---|
static Block |
optimize(Block program)
|
private static void |
optimizeTopLevelFunctions(ParseTreeNode node)
|
private static void |
optimizeWithin(FunctionConstructor fc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantPooler()
Method Detail |
---|
public static Block optimize(Block program)
private static void optimizeTopLevelFunctions(ParseTreeNode node)
private static void optimizeWithin(FunctionConstructor fc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |