Class WasmGeneratorStage
java.lang.Object
com.google.j2cl.transpiler.backend.wasm.WasmGeneratorStage
Generates all the outputs for Wasm compilation.
-
Constructor Summary
ConstructorsConstructorDescriptionWasmGeneratorStage(com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.Problems problems) Returns a generator stage that can emit code as strings. -
Method Summary
Modifier and TypeMethodDescriptionemitToString(Consumer<WasmConstructsGenerator> emitter) static voidgenerateModularOutput(com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.OutputUtils.Output output, Path libraryInfoOutputPath, String sourceMappingPathPrefix, com.google.j2cl.common.Problems problems) static voidgenerateMonolithicOutput(com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.OutputUtils.Output output, Path libraryInfoOutputPath, String sourceMappingPathPrefix, com.google.j2cl.common.Problems problems) static voidgenerateWasmExportMethods(List<com.google.j2cl.transpiler.ast.Method> methods, com.google.j2cl.common.OutputUtils.Output output, com.google.j2cl.common.Problems problems)
-
Constructor Details
-
WasmGeneratorStage
public WasmGeneratorStage(com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.Problems problems) Returns a generator stage that can emit code as strings.
-
-
Method Details
-
getEnvironment
-
generateModularOutput
-
emitToString
-
generateMonolithicOutput
-
generateWasmExportMethods
public static void generateWasmExportMethods(List<com.google.j2cl.transpiler.ast.Method> methods, com.google.j2cl.common.OutputUtils.Output output, com.google.j2cl.common.Problems problems)
-