Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
InlineFunctions.Reference |
Modifier and Type | Method and Description |
---|---|
private boolean |
FunctionInjector.callMeetsBlockInliningRequirements(FunctionInjector.Reference ref,
Node fnNode,
java.util.Set<java.lang.String> namesToAlias)
Determines whether a function can be inlined at a particular call site.
|
private FunctionInjector.CanInlineResult |
FunctionInjector.canInlineReferenceAsStatementBlock(FunctionInjector.Reference ref,
Node fnNode,
java.util.Set<java.lang.String> namesToAlias)
Determines whether a function can be inlined at a particular call site.
|
private FunctionInjector.CanInlineResult |
FunctionInjector.canInlineReferenceDirectly(FunctionInjector.Reference ref,
Node fnNode,
java.util.Set<java.lang.String> namesToAlias)
Determines whether a function can be inlined at a particular call site.
|
(package private) FunctionInjector.CanInlineResult |
FunctionInjector.canInlineReferenceToFunction(FunctionInjector.Reference ref,
Node fnNode,
java.util.Set<java.lang.String> needAliases,
boolean referencesThis,
boolean containsFunctions) |
private FunctionInjector.CallSiteType |
FunctionInjector.classifyCallSite(FunctionInjector.Reference ref)
Determine which, if any, of the supported types the call site is.
|
(package private) Node |
FunctionInjector.inline(FunctionInjector.Reference ref,
java.lang.String fnName,
Node fnNode)
Inline a function into the call site.
|
private Node |
FunctionInjector.inlineFunction(FunctionInjector.Reference ref,
Node fnNode,
java.lang.String fnName)
Inline a function which fulfills the requirements of
canInlineReferenceAsStatementBlock into the call site, replacing the
parent expression.
|
private Node |
FunctionInjector.inlineReturnValue(FunctionInjector.Reference ref,
Node fnNode)
Inline a function that fulfills the requirements of
canInlineReferenceDirectly into the call site, replacing only the CALL
node.
|
(package private) void |
FunctionInjector.maybePrepareCall(FunctionInjector.Reference ref)
If required, rewrite the statement containing the call expression.
|
abstract void |
FunctionInjector.CallSiteType.prepare(FunctionInjector injector,
FunctionInjector.Reference ref) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
FunctionInjector.inliningLowersCost(JSModule fnModule,
Node fnNode,
java.util.Collection<? extends FunctionInjector.Reference> refs,
java.util.Set<java.lang.String> namesToAlias,
boolean isRemovable,
boolean referencesThis)
Determine if inlining the function is likely to reduce the code size.
|