public class LibraryJavaToJavaScriptCompiler extends JavaToJavaScriptCompiler
JProgram
representation into its corresponding library Js source.
JavaToJavaScriptCompiler.PermutationCompiler, JavaToJavaScriptCompiler.Precompiler
compilerContext, jsProgram, logger, module, options
Constructor and Description |
---|
LibraryJavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext)
Constructs a JavaToJavaScriptCompiler with customizations for compiling independent libraries.
|
Modifier and Type | Method and Description |
---|---|
PermutationResult |
compilePermutation(UnifiedAst unifiedAst,
Permutation permutation)
Compiles and returns a particular permutation, based on a precompiled unified AST.
|
UnifiedAst |
precompile(RebindPermutationOracle rpo,
String[] entryPointTypeNames,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics)
Performs a precompilation, returning a unified AST.
|
optimizeJavaToFixedPoint, precompile
public LibraryJavaToJavaScriptCompiler(TreeLogger logger, CompilerContext compilerContext)
public PermutationResult compilePermutation(UnifiedAst unifiedAst, Permutation permutation) throws UnableToCompleteException
JavaToJavaScriptCompiler
compilePermutation
in class JavaToJavaScriptCompiler
UnableToCompleteException
public UnifiedAst precompile(RebindPermutationOracle rpo, String[] entryPointTypeNames, String[] additionalRootTypes, boolean singlePermutation, PrecompilationMetricsArtifact precompilationMetrics) throws UnableToCompleteException
JavaToJavaScriptCompiler
precompile
in class JavaToJavaScriptCompiler
UnableToCompleteException
Copyright © 2018. All rights reserved.