Class WasmGeneratorStage

java.lang.Object
com.google.j2cl.transpiler.backend.wasm.WasmGeneratorStage

public class WasmGeneratorStage extends Object
Generates all the outputs for Wasm compilation.
  • 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

      public WasmGenerationEnvironment getEnvironment()
    • generateModularOutput

      public static void generateModularOutput(com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.OutputUtils.Output output, Path libraryInfoOutputPath, String sourceMappingPathPrefix, com.google.j2cl.common.Problems problems)
    • emitToString

      public String emitToString(Consumer<WasmConstructsGenerator> emitter)
    • generateMonolithicOutput

      public static void generateMonolithicOutput(com.google.j2cl.transpiler.ast.Library library, com.google.j2cl.common.OutputUtils.Output output, Path libraryInfoOutputPath, String sourceMappingPathPrefix, com.google.j2cl.common.Problems problems)
    • 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)