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,
PrecompileTaskOptions options,
ConfigProps config)
Construct an simple AST representing an entire
CompilationState . |
JProgram |
UnifiedAst.AST.getJProgram() |
Modifier and Type | Method and Description |
---|---|
static void |
EnumNameObfuscator.exec(JProgram jprogram,
TreeLogger logger,
List<String> blacklistedEnums,
boolean closureMode) |
Constructor and Description |
---|
AST(JProgram jProgram,
JsProgram jsProgram) |
Modifier and Type | Method and Description |
---|---|
static JTypeOracle.StandardTypes |
JTypeOracle.StandardTypes.createFrom(JProgram program) |
void |
JVisitor.endVisit(JProgram x,
Context ctx) |
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 |
PostOptimizationCompoundAssignmentNormalizer.exec(JProgram program) |
static void |
ReplaceGetClassOverrides.exec(JProgram program) |
static OptimizerStats |
MethodInliner.exec(JProgram program) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program) |
static void |
LongCastNormalizer.exec(JProgram program) |
static void |
LongEmulationNormalizer.exec(JProgram program) |
static void |
EqualityNormalizer.exec(JProgram program) |
static void |
Devirtualizer.exec(JProgram program) |
static OptimizerStats |
EnumOrdinalizer.exec(JProgram program) |
static void |
AssertionRemover.exec(JProgram program) |
static boolean |
RemoveEmptySuperCalls.exec(JProgram program) |
static void |
FixAssignmentsToUnboxOrCast.exec(JProgram program) |
static void |
CatchBlockNormalizer.exec(JProgram program) |
static OptimizerStats |
RemoveSpecializations.exec(JProgram program) |
static OptimizerStats |
SameParameterValueOptimizer.exec(JProgram program) |
static void |
SourceInfoCorrelator.exec(JProgram program) |
static void |
TypeCoercionNormalizer.exec(JProgram program) |
static OptimizerStats |
Finalizer.exec(JProgram program) |
static Set<String> |
RecordRebinds.exec(JProgram program) |
static void |
ComputeInstantiatedJsoInterfaces.exec(JProgram program) |
static void |
ImplementClassLiteralsAsFields.exec(JProgram program) |
static OptimizerStats |
TypeTightener.exec(JProgram program) |
static OptimizerStats |
MethodCallSpecializer.exec(JProgram program) |
static void |
CompileTimeConstantsReplacer.exec(JProgram program) |
static void |
AssertionNormalizer.exec(JProgram program) |
static OptimizerStats |
MethodCallTightener.exec(JProgram program) |
static void |
ArrayNormalizer.exec(JProgram program,
boolean disableCastChecking) |
static void |
ImplementCastsAndTypeChecks.exec(JProgram program,
boolean disableCastChecking) |
static void |
ComputeCastabilityInformation.exec(JProgram program,
boolean disableCastChecking) |
static OptimizerStats |
MakeCallsStatic.exec(JProgram program,
boolean addRuntimeChecks) |
static OptimizerStats |
Pruner.exec(JProgram program,
boolean noSpecialTypes) |
static void |
ComputeExhaustiveCastabilityInformation.exec(JProgram program,
boolean disableCastChecking) |
static void |
ImplementCastsAndTypeChecks.exec(JProgram program,
boolean disableCastChecking,
boolean pruneTrivialCasts) |
static void |
ComputeCastabilityInformation.exec(JProgram program,
boolean disableCastChecking,
boolean recordTrivialCasts) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program,
JNode node) |
static boolean |
ResolveRebinds.exec(JProgram program,
List<GwtCreateMap> gwtCreateAnswers) |
static void |
TypeReferencesRecorder.exec(JProgram program,
MinimalRebuildCache minimalRebuildCache,
boolean onlyUpdate) |
static void |
ResolveRuntimeTypeReferences.exec(JProgram program,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
ResolveRuntimeTypeReferences.TypeOrder typeOrder) |
static void |
JsniRestrictionChecker.exec(TreeLogger logger,
JProgram jprogram) |
static void |
TypeRefDepsChecker.exec(TreeLogger logger,
JProgram program,
DepsInfoProvider depsInfoProvider,
boolean warnMissingDeps,
File missingDepsFile) |
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(TreeLogger logger,
JProgram program,
JsProgram jsProgram,
CompilerContext compilerContext,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
Map<StandardSymbolData,JsName> symbolTable,
PermProps props)
This is the main entry point for the translation from Java to JavaScript.
|
static JNode |
JsniRefLookup.findJsniRefTarget(JsniRef ref,
JProgram program,
JsniRefLookup.ErrorReporter errorReporter)
Deprecated.
Look up a JSNI reference.
|
static boolean |
Devirtualizer.isGetClassDevirtualized(JProgram program,
JType type)
Returns true if getClass() is devirtualized for
type ; used in
ReplaceGetClassOverrides to avoid replacing getClass() methods that need
trampolines. |
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) |
ControlFlowAnalyzer(JProgram program) |
DeadCodeElimination(JProgram program) |
EmptySuperCallVisitor(JProgram program) |
EnumOrdinalizer(JProgram program) |
ImplicitUpcastAnalyzer(JProgram program) |
JsniRestrictionChecker(TreeLogger logger,
JProgram jprogram) |
RemoveSpecializations(JProgram program) |
TypeRefDepsChecker(TreeLogger logger,
JProgram program,
DepsInfoProvider depsInfoProvider,
boolean warnMissingDeps,
File missingDepsFile) |
UnifyAst(TreeLogger logger,
CompilerContext compilerContext,
JProgram program,
JsProgram jsProgram,
RebindPermutationOracle rpo) |
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,
ConfigProps 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.
|
static Cfg |
CfgBuilder.buildExpressionCfg(JProgram program,
JExpression value) |
Modifier and Type | Method and Description |
---|---|
void |
ClosureJsRunner.compile(JProgram jprogram,
JsProgram program,
String[] js,
JsOutputOption jsOutputOption) |
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,
byte whatToIntern)
Apply interning of literals to a JsProgram.
|
static void |
JsStackEmulator.exec(JProgram jprogram,
JsProgram jsProgram,
PermProps props,
JavaToJavaScriptMap jjsmap) |
Copyright © 2018. All rights reserved.