Modifier and Type | Method and Description |
---|---|
static List<SyntheticArtifact> |
EntityRecorder.makeSoycArtifacts(int permutationId,
List<JsSourceMap> sourceInfoMaps,
String sourceMapFilePrefix,
JavaToJavaScriptMap jjsmap,
SizeBreakdown[] sizeBreakdowns,
DependencyGraphRecorder codeGraph,
JProgram jprogram) |
Constructor and Description |
---|
DependencyGraphRecorder(OutputStream out,
JProgram jProgram) |
Modifier and Type | Method and Description |
---|---|
protected void |
DependencyRecorder.recordDependenciesImpl(TreeLogger logger,
JProgram jprogram)
Used to record dependencies of a program.
|
static void |
SplitPointRecorder.recordSplitPoints(JProgram jprogram,
OutputStream out,
TreeLogger logger)
Used to record (runAsync) split points of a program.
|
Modifier and Type | Method and Description |
---|---|
static JProgram |
AstConstructor.construct(TreeLogger logger,
CompilationState state,
CompilerContext compilerContext,
ConfigurationProperties config)
Construct an simple AST representing an entire
CompilationState . |
static JProgram |
AstConstructor.construct(TreeLogger logger,
CompilationState state,
PrecompileTaskOptions options,
ConfigurationProperties config) |
JProgram |
UnifiedAst.AST.getJProgram() |
Constructor and Description |
---|
AST(JProgram jProgram,
JsProgram jsProgram) |
Modifier and Type | Method and Description |
---|---|
static JTypeOracle.StandardTypes |
JTypeOracle.StandardTypes.createFrom(JProgram program) |
static JPermutationDependentValue |
JPermutationDependentValue.createRuntimeProperty(JProgram program,
SourceInfo info,
String propertyName,
JExpression defaultValueExpression) |
static JPermutationDependentValue |
JPermutationDependentValue.createTypeRebind(JProgram program,
SourceInfo info,
String requestedType,
List<String> resultTypes,
List<JExpression> instantiationExpressions) |
void |
JVisitor.endVisit(JProgram x,
Context ctx) |
T |
JTransformer.transformProgram(JProgram x) |
boolean |
JVisitor.visit(JProgram x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
static com.google.gwt.thirdparty.guava.common.base.Predicate<JField> |
ComputePotentiallyObservableUninitializedValues.analyze(JProgram program)
Perform the analysis to compute which fields can be observed uninitialized.
|
static void |
JavaAstVerifier.assertCorrectOverriddenOrder(JProgram program,
JMethod method) |
static void |
JavaAstVerifier.assertCorrectOverridingOrder(JProgram program,
JMethod method) |
static void |
JavaAstVerifier.assertProgramIsConsistent(JProgram program)
Throws an assertion error if the AST for a program is not consistent.
|
void |
CallGraph.buildCallGraph(JProgram program)
Build the call graph of a JProgram.
|
void |
FieldReferencesGraph.buildFieldReferencesGraph(JProgram program)
Build the field references graph of a JProgram.
|
static JExpression |
JjsUtils.createOptimizedNotNullComparison(JProgram program,
SourceInfo info,
JExpression expression)
Returns an ast node representing the expression
expression != null . |
static void |
PostOptimizationCompoundAssignmentNormalizer.exec(JProgram program) |
static void |
ArrayNormalizer.exec(JProgram program) |
static void |
ReplaceGetClassOverrides.exec(JProgram program) |
static void |
ImplementCastsAndTypeChecks.exec(JProgram program) |
static void |
DevirtualizeDefaultMethodForwarding.exec(JProgram program) |
static OptimizerStats |
MethodInliner.exec(JProgram program) |
static void |
ComputeCastabilityInformation.exec(JProgram program) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program) |
static void |
LongCastNormalizer.exec(JProgram program) |
static void |
LongEmulationNormalizer.exec(JProgram program) |
static OptimizerStats |
RewriteConstructorCallsForUnboxedTypes.exec(JProgram program) |
static void |
ReplaceCallsToNativeJavaLangObjectOverrides.exec(JProgram program) |
static void |
EqualityNormalizer.exec(JProgram program) |
static void |
Devirtualizer.exec(JProgram program) |
static void |
AssertionRemover.exec(JProgram program) |
static boolean |
RemoveEmptySuperCalls.exec(JProgram program) |
List<JMethod> |
ComputeOverridesAndImplementDefaultMethods.exec(JProgram program)
Returns the methods created by this pass.
|
static void |
FixAssignmentsToUnboxOrCast.exec(JProgram program) |
static void |
CatchBlockNormalizer.exec(JProgram program) |
static OptimizerStats |
RemoveSpecializations.exec(JProgram program) |
static void |
ImplementJsVarargs.exec(JProgram program) |
static void |
SourceInfoCorrelator.exec(JProgram program) |
static void |
NameClashesFixer.exec(JProgram program) |
static void |
ComputeExhaustiveCastabilityInformation.exec(JProgram program) |
static void |
TypeCoercionNormalizer.exec(JProgram program) |
static Set<String> |
RecordRebinds.exec(JProgram program) |
static void |
CompileTimeConstantsReplacer.exec(JProgram program) |
static void |
AssertionNormalizer.exec(JProgram program) |
static void |
ImplementCastsAndTypeChecks.exec(JProgram program,
boolean pruneTrivialCasts) |
static void |
ComputeCastabilityInformation.exec(JProgram program,
boolean recordTrivialCasts) |
static OptimizerStats |
Pruner.exec(JProgram program,
boolean noSpecialTypes) |
static void |
ImplementClassLiteralsAsFields.exec(JProgram program,
boolean shouldOptimize) |
static OptimizerStats |
MakeCallsStatic.exec(JProgram program,
boolean addRuntimeChecks,
OptimizerContext optimizerCtx) |
static OptimizerStats |
Pruner.exec(JProgram program,
boolean noSpecialTypes,
OptimizerContext optimizerCtx) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program,
JMethod method) |
static void |
TypeReferencesRecorder.exec(JProgram program,
MinimalRebuildCache minimalRebuildCache,
boolean onlyUpdate) |
static OptimizerStats |
MethodInliner.exec(JProgram program,
OptimizerContext optimizerCtx) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program,
OptimizerContext optimizerCtx)
Apply DeadCodeElimination on the set of newly modified methods (obtained from the optimzer
context).
|
static OptimizerStats |
EnumOrdinalizer.exec(JProgram program,
OptimizerContext optimizerCtx) |
static OptimizerStats |
SameParameterValueOptimizer.exec(JProgram program,
OptimizerContext optimizerCtx) |
static OptimizerStats |
Finalizer.exec(JProgram program,
OptimizerContext optimizerCtx) |
static OptimizerStats |
TypeTightener.exec(JProgram program,
OptimizerContext optimizerCtx) |
static OptimizerStats |
MethodCallSpecializer.exec(JProgram program,
OptimizerContext optimizerCtx) |
static OptimizerStats |
MethodCallTightener.exec(JProgram program,
OptimizerContext optimizerCtx) |
static boolean |
ResolvePermutationDependentValues.exec(JProgram program,
PermutationProperties props,
List<PropertyAndBindingInfo> propertyAndBindingInfo) |
static void |
ResolveRuntimeTypeReferences.exec(JProgram program,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
ResolveRuntimeTypeReferences.TypeOrder typeOrder) |
static void |
ControlFlowRecorder.exec(JProgram program,
StringAnalyzableTypeEnvironment stringAnalyzableTypeEnvironment,
boolean onlyUpdate) |
static void |
EnumNameObfuscator.exec(JProgram jprogram,
TreeLogger logger,
ConfigurationProperties configurationProperties,
PrecompileTaskOptions options) |
static void |
JsniRestrictionChecker.exec(TreeLogger logger,
JProgram program) |
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(TreeLogger logger,
JProgram program,
JsProgram jsProgram,
CompilerContext compilerContext,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
Map<StandardSymbolData,JsName> symbolTable,
PermutationProperties props)
This is the main entry point for the translation from Java to JavaScript.
|
static void |
JsInteropRestrictionChecker.exec(TreeLogger logger,
JProgram jprogram,
MinimalRebuildCache minimalRebuildCache) |
static JNode |
JsniRefLookup.findJsniRefTarget(JsniRef ref,
JProgram program,
JsniRefLookup.ErrorReporter errorReporter)
Deprecated.
Look up a JSNI reference.
|
static void |
AstDumper.maybeDumpAST(JProgram jprogram)
Appends a new version of the AST at the end of the file, each time it's
called.
|
static void |
AstDumper.maybeDumpAST(JProgram jprogram,
boolean autoIncrementVersion)
Writes the AST to the file with a versioned extension, using an
auto-incrementing version number (starting from 1), each time it's called.
|
void |
EnumOrdinalizer.Tracker.maybeDumpAST(JProgram program,
int stage) |
static void |
AstDumper.maybeDumpAST(JProgram jprogram,
int versionNumber)
Writes the AST to the file with the provided version number extension.
|
static void |
AstDumper.maybeDumpAST(JProgram jprogram,
String versionString)
Writes the AST to the file with the provided version string extension.
|
static JFieldRef |
Pruner.transformToNullFieldRef(JFieldRef x,
JProgram program)
Transform a reference to a pruned instance field into a reference to the
null field, which will be used to replace
x . |
static JMethodCall |
Pruner.transformToNullMethodCall(JMethodCall x,
JProgram program)
Transform a call to a pruned instance method (or static impl) into a call
to the null method, which will be used to replace
x . |
static TypeCategory |
TypeCategory.typeCategoryForType(JType type,
JProgram program)
Determines the type category for a specific type.
|
boolean |
ToStringGenerationVisitor.visit(JProgram x,
Context ctx) |
boolean |
SourceGenerationVisitor.visit(JProgram x,
Context ctx) |
Constructor and Description |
---|
AssertionNormalizer(JProgram program) |
AssertionRemover(JProgram program) |
AutoboxUtils(JProgram program) |
ClosureUniqueIdTypeMapper(JProgram program) |
ControlFlowAnalyzer(JProgram program) |
ControlFlowRecorder(StringAnalyzableTypeEnvironment stringAnalyzableTypeEnvironment,
boolean onlyUpdate,
JProgram program) |
DeadCodeElimination(JProgram program) |
EnumOrdinalizer(JProgram program) |
FullOptimizerContext(JProgram program) |
ImplicitUpcastAnalyzer(JProgram program) |
RemoveSpecializations(JProgram program) |
RewriteConstructorCallsForUnboxedTypes(JProgram program) |
StringTypeMapper(JProgram program) |
UnifyAst(TreeLogger logger,
CompilerContext compilerContext,
JProgram program,
JsProgram jsProgram,
PrecompilationContext precompilationContext) |
Modifier and Type | Method and Description |
---|---|
static ControlFlowAnalyzer |
CodeSplitter.computeInitiallyLive(JProgram jprogram) |
static void |
ReplaceRunAsyncs.exec(TreeLogger logger,
JProgram program) |
static void |
CodeSplitter.exec(TreeLogger logger,
JProgram jprogram,
JsProgram jsprogram,
JavaToJavaScriptMap map,
int expectedFragmentCount,
int minFragmentSize,
MultipleDependencyGraphRecorder dependencyRecorder) |
static JRunAsync |
CodeSplitters.findRunAsync(String refString,
JProgram program,
TreeLogger branch)
Find a split point as designated in the
CodeSplitters.PROP_INITIAL_SEQUENCE
configuration property. |
static void |
CodeSplitters.pickInitialLoadSequence(TreeLogger logger,
JProgram program,
ConfigurationProperties config)
Choose an initial load sequence of split points for the specified program.
|
Constructor and Description |
---|
FragmentExtractor(JProgram jprogram,
JsProgram jsprogram,
JavaToJavaScriptMap map) |
Modifier and Type | Method and Description |
---|---|
static OptimizerStats |
DataflowOptimizer.exec(JProgram jprogram) |
static OptimizerStats |
DataflowOptimizer.exec(JProgram jprogram,
JNode node) |
Constructor and Description |
---|
DataflowOptimizer(JProgram program) |
Modifier and Type | Method and Description |
---|---|
static Cfg |
CfgBuilder.build(JProgram program,
JBlock codeblock)
Build Cfg for code block.
|
Modifier and Type | Method and Description |
---|---|
static com.google.gwt.thirdparty.guava.common.collect.Multimap<String,Integer> |
BaselineCoverageGatherer.exec(JProgram jProgram) |
static Map<JsName,JsLiteral> |
JsLiteralInterner.exec(JProgram jprogram,
JsProgram program,
int whatToIntern)
Apply interning of literals to a JsProgram.
|
static void |
JsNamespaceChooser.exec(JProgram jprogram,
JsProgram jsprogram,
JavaToJavaScriptMap jjsmap) |
static void |
CoverageInstrumentor.exec(JProgram jprogram,
JsProgram jsProgram,
JavaToJavaScriptMap jjsmap,
com.google.gwt.thirdparty.guava.common.collect.Multimap<String,Integer> instrumentableLines) |
static void |
JsStackEmulator.exec(JProgram jprogram,
JsProgram jsProgram,
PermutationProperties properties,
JavaToJavaScriptMap jjsmap) |
static JsName |
JsUtils.getJsNameForField(JavaToJavaScriptMap jjsmap,
JProgram jprogram,
String indexedMethodName) |
static JsName |
JsUtils.getJsNameForMethod(JavaToJavaScriptMap jjsmap,
JProgram jprogram,
String indexedMethodName) |
Copyright © 2018. All rights reserved.