Class WasmConstructsGenerator

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

public class WasmConstructsGenerator extends Object
Generates all the syntactic .wat constructs for wasm.
  • Constructor Details

    • WasmConstructsGenerator

      public WasmConstructsGenerator(WasmGenerationEnvironment environment, com.google.j2cl.transpiler.backend.common.SourceBuilder builder, String sourceMappingPathPrefix)
  • Method Details

    • emitGlobals

      public void emitGlobals(com.google.j2cl.transpiler.ast.Library library)
    • emitExceptionTag

      public void emitExceptionTag()
    • renderMethod

      public void renderMethod(com.google.j2cl.transpiler.ast.Method method)
    • emitEmptyItableGlobal

      public void emitEmptyItableGlobal()
    • emitItableInterfaceGetters

      public void emitItableInterfaceGetters(com.google.j2cl.transpiler.ast.Library library)
    • emitItableInterfaceGetter

      public void emitItableInterfaceGetter(String methodName, String fieldName)