WasmRunJVMOutput

open class WasmRunJVMOutput(val OUTPUT_CLASS_NAME: String = "WasmProgram")

Constructors

Link copied to clipboard
constructor(OUTPUT_CLASS_NAME: String = "WasmProgram")

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ControlStructure(val kind: String, val startStack: List<WasmSType>, val result: WasmType, val label: Label = Label())
Link copied to clipboard
data class ElementInfo(val tableIndex: Int, val index: Int, val elements: List<WasmRunJVMOutput.ElementItem>)
Link copied to clipboard
data class ElementItem(val func: WasmFunc, val funcName: String)
Link copied to clipboard
class GenMethodContext(val name: String, val methodVisitor: MethodVisitor, val func: WasmFunc, val module: WasmModule)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun MethodVisitor.boxType(stype: WasmSType)
Link copied to clipboard
inline fun createClass(name: String, parent: Class<*> = java.lang.Object::class.java, vararg interfaces: Class<*>, doTrace: Boolean, doValidate: Boolean, handleBytes: (ByteArray) -> Unit = { }, block: ClassVisitor.() -> Unit): Class<*>
Link copied to clipboard
inline fun ClassVisitor.createConstructor(vararg params: Class<*>?, crossinline block: MethodVisitor.() -> Unit)
Link copied to clipboard
inline fun ClassVisitor.createMethod(name: String, ret: Class<*>?, vararg params: Any?, isStatic: Boolean = false, maxStack: Int = 0, maxLocals: Int = 0, crossinline block: MethodVisitor.() -> Unit)
Link copied to clipboard
open fun dumpJVMBytecode(bytes: ByteArray)
Link copied to clipboard
Link copied to clipboard
fun MethodVisitor.generateExpr(expr: WasmExpr, context: WasmRunJVMOutput.GenMethodContext, indent: Int, implicitReturn: Boolean = true)
Link copied to clipboard
fun MethodVisitor.generateFunc(func: WasmFunc, module: WasmModule)
Link copied to clipboard
Link copied to clipboard
open fun getClassVisitor(cw: ClassWriter, doValidate: Boolean): ClassVisitor
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun MethodVisitor.getWasmGlobal(global: WasmGlobal)
Link copied to clipboard
fun MethodVisitor.setWasmGlobal(global: WasmGlobal)
Link copied to clipboard
Link copied to clipboard
fun WasmType.toJDescriptor(isImport: Boolean = false): String
Link copied to clipboard
Link copied to clipboard
fun MethodVisitor.unboxType(stype: WasmSType)
Link copied to clipboard
open fun useMethodVisitor(myMethod: MethodVisitor, doTrace: Boolean, block: (mv: MethodVisitor) -> Unit)