public abstract class JavaToJavaScriptCompiler extends Object
JProgram
representations into corresponding Js
source.Modifier and Type | Class and Description |
---|---|
protected class |
JavaToJavaScriptCompiler.PermutationCompiler
Compile a permutation.
|
protected class |
JavaToJavaScriptCompiler.Precompiler
Performs precompilation.
|
Modifier and Type | Field and Description |
---|---|
protected CompilerContext |
compilerContext |
protected JsProgram |
jsProgram |
protected TreeLogger |
logger |
protected ModuleDef |
module |
protected PrecompileTaskOptions |
options |
Constructor and Description |
---|
JavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext) |
Modifier and Type | Method and Description |
---|---|
abstract PermutationResult |
compilePermutation(UnifiedAst unifiedAst,
Permutation permutation)
Compiles and returns a particular permutation, based on a precompiled unified AST.
|
protected void |
optimizeJavaToFixedPoint() |
UnifiedAst |
precompile(RebindPermutationOracle rpo,
String[] entryPointTypeNames,
String[] additionalRootTypes,
boolean singlePermutation)
Performs a precompilation, returning a unified AST.
|
abstract UnifiedAst |
precompile(RebindPermutationOracle rpo,
String[] entryPointTypeNames,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics)
Performs a precompilation, returning a unified AST.
|
protected final CompilerContext compilerContext
protected JsProgram jsProgram
protected final TreeLogger logger
protected final ModuleDef module
protected final PrecompileTaskOptions options
public JavaToJavaScriptCompiler(TreeLogger logger, CompilerContext compilerContext)
public abstract PermutationResult compilePermutation(UnifiedAst unifiedAst, Permutation permutation) throws UnableToCompleteException
UnableToCompleteException
public UnifiedAst precompile(RebindPermutationOracle rpo, String[] entryPointTypeNames, String[] additionalRootTypes, boolean singlePermutation) throws UnableToCompleteException
UnableToCompleteException
public abstract UnifiedAst precompile(RebindPermutationOracle rpo, String[] entryPointTypeNames, String[] additionalRootTypes, boolean singlePermutation, PrecompilationMetricsArtifact precompilationMetrics) throws UnableToCompleteException
UnableToCompleteException
protected final void optimizeJavaToFixedPoint() throws InterruptedException
InterruptedException
Copyright © 2018. All rights reserved.