Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ExploitAssigns
Tries to chain assignments together.
|
(package private) class |
PeepholeCollectPropertyAssignments
A pass that looks for assignments to properties of an object or array
immediately following its creation using the abbreviated syntax.
|
(package private) class |
PeepholeFoldConstants
Peephole optimization to fold constants (e.g.
|
(package private) class |
PeepholeMinimizeConditions
A peephole optimization that minimizes conditional expressions
according to De Morgan's laws.
|
(package private) class |
PeepholeRemoveDeadCode
Peephole optimization to remove useless code such as IF's with false
guard conditions, comma operator left hand sides with no side effects, etc.
|
(package private) class |
PeepholeReplaceKnownMethods
Just to fold known methods when they are called with constants.
|
(package private) class |
PeepholeSimplifyRegExp
Simplifies regular expression patterns and flags.
|
(package private) class |
PeepholeSubstituteAlternateSyntax
A peephole optimization that minimizes code by simplifying conditional
expressions, replacing IFs with HOOKs, replacing object constructors
with literals, and simplifying returns.
|
(package private) class |
ReorderConstantExpression
Reorder constant expression hoping for a better compression.
|
(package private) class |
StatementFusion
Tries to fuse all the statements in a block into a one statement by using
COMMAs.
|
Modifier and Type | Field and Description |
---|---|
private AbstractPeepholeOptimization[] |
PeepholeOptimizationsPass.peepholeOptimizations |
Constructor and Description |
---|
PeepholeOptimizationsPass(AbstractCompiler compiler,
AbstractPeepholeOptimization... optimizations)
Creates a peephole optimization pass that runs the given
optimizations.
|