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,
Properties properties)
Construct an simple AST representing an entire
CompilationState . |
JProgram |
UnifiedAst.AST.getJProgram() |
Modifier and Type | Method and Description |
---|---|
protected static void |
JavaToJavaScriptCompiler.draftOptimize(JProgram jprogram)
Perform the minimal amount of optimization to make sure the compile
succeeds.
|
static void |
EnumNameObfuscator.exec(JProgram jprogram,
TreeLogger logger) |
protected static void |
JavaToJavaScriptCompiler.optimize(JJSOptions options,
JProgram jprogram) |
protected static OptimizerStats |
JavaToJavaScriptCompiler.optimizeLoop(String passName,
JProgram jprogram,
JJSOptions options) |
protected static OptimizerStats |
JavaToJavaScriptCompiler.optimizeLoop(String passName,
JProgram jprogram,
JJSOptions options,
int numNodes) |
Constructor and Description |
---|
AST(JProgram jProgram,
JsProgram jsProgram) |
Modifier and Type | Method and Description |
---|---|
void |
JVisitor.endVisit(JProgram x,
Context ctx) |
boolean |
JVisitor.visit(JProgram x,
Context ctx) |
Constructor and Description |
---|
JTypeOracle(JProgram program) |
Modifier and Type | Field and Description |
---|---|
JProgram |
JavaAndJavaScript.jprogram |
Modifier and Type | Method and Description |
---|---|
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 OptimizerStats |
EnumOrdinalizer.exec(JProgram program) |
static void |
AssertionRemover.exec(JProgram program) |
static boolean |
RemoveEmptySuperCalls.exec(JProgram program) |
static OptimizerStats |
MakeCallsStatic.exec(JProgram program) |
static void |
FixAssignmentsToUnboxOrCast.exec(JProgram program) |
static void |
JsoDevirtualizer.exec(JProgram program) |
static void |
CatchBlockNormalizer.exec(JProgram program) |
static OptimizerStats |
SameParameterValueOptimizer.exec(JProgram program) |
static void |
SourceInfoCorrelator.exec(JProgram program) |
static OptimizerStats |
Finalizer.exec(JProgram program) |
static void |
ImplementClassLiteralsAsFields.exec(JProgram program) |
static OptimizerStats |
TypeTightener.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 |
CastNormalizer.exec(JProgram program,
boolean disableCastChecking) |
static OptimizerStats |
Pruner.exec(JProgram program,
boolean noSpecialTypes) |
static OptimizerStats |
DeadCodeElimination.exec(JProgram program,
JNode node) |
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(JProgram program,
JsProgram jsProgram,
JsOutputOption outputOption,
Map<StandardSymbolData,JsName> symbolTable,
PropertyOracle[] propertyOracles)
This is the main entry point for the translation from Java to JavaScript.
|
static boolean |
ResolveRebinds.exec(JProgram program,
Map<String,String>[] orderedRebindAnswers) |
static void |
RecordRebinds.exec(JProgram program,
Set<String> liveRebindRequests) |
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 . |
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) |
EnumOrdinalizer(JProgram program) |
ImplicitUpcastAnalyzer(JProgram program) |
JavaAndJavaScript(JProgram jprogram,
JsProgram jsprogram,
String[] jscode,
JavaToJavaScriptMap map) |
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,
Properties properties)
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,String> |
JsStringInterner.exec(JProgram jprogram,
JsProgram program,
boolean alwaysIntern)
Apply interning of String literals to a JsProgram.
|
static void |
JsStackEmulator.exec(JProgram jprogram,
JsProgram jsProgram,
PropertyOracle[] propertyOracles,
JavaToJavaScriptMap jjsmap) |
Copyright © 2018. All rights reserved.