Class WasmConstructsGenerator
java.lang.Object
com.google.j2cl.transpiler.backend.wasm.WasmConstructsGenerator
Generates all the syntactic .wat constructs for wasm.
-
Constructor Summary
ConstructorsConstructorDescriptionWasmConstructsGenerator(WasmGenerationEnvironment environment, com.google.j2cl.transpiler.backend.common.SourceBuilder builder, String sourceMappingPathPrefix) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidemitGlobals(com.google.j2cl.transpiler.ast.Library library) voidemitItableInterfaceGetter(String methodName, String fieldName) voidemitItableInterfaceGetters(com.google.j2cl.transpiler.ast.Library library) voidrenderMethod(com.google.j2cl.transpiler.ast.Method method)
-
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
-