Packages

  • package root
    Definition Classes
    root
  • package swam
    Definition Classes
    root
  • package runtime

    This package contains all the classes and types related to running WebAssembly modules.

    This package contains all the classes and types related to running WebAssembly modules.

    The entry point for almost all users will be Engine. A typical use of the engine is:

    import swam._
    import text._
    import runtime._
    import exports._
    
    import cats.implicits._
    import cats.effect._
    
    import java.nio.file.Paths
    
    val tcompiler = Compiler[IO]
    val engine = Engine[IO]
    
    for {
      tcompiler <- tcompiler
      engine <- engine
      mod <- engine.compile(/* source of the module */)
      inst <- mod.newInstance()
      f <- inst.exports.function1[Int, Int]("f")
      res <- f(43)
    } yield res
    
    println(res.unsafeRunSync())
    Definition Classes
    swam
  • package internals
    Definition Classes
    runtime
  • package interpreter
    Definition Classes
    internals
  • Asm
  • AsmInst
  • Continuation
  • Continue
  • Done
  • Suspend

class Asm[F[_]] extends AnyRef

Source
asm.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Asm
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Asm()(implicit F: MonadError[F, Throwable])

Type Members

  1. class Br extends Breaking
  2. class BrIf extends Breaking
  3. class BrLabel extends AnyRef
  4. class BrTable extends Breaking
  5. sealed abstract class Breaking extends AsmInst[F]
  6. class Call extends Invoking
  7. class CallIndirect extends Invoking
  8. class Drop extends AsmInst[F]
  9. class F32Const extends AsmInst[F]
  10. class F32Load extends AsmInst[F]
  11. class F32Store extends AsmInst[F]
  12. class F64Const extends AsmInst[F]
  13. class F64Load extends AsmInst[F]
  14. class F64Store extends AsmInst[F]
  15. class GlobalGet extends AsmInst[F]
  16. class GlobalSet extends AsmInst[F]
  17. class I32Const extends AsmInst[F]
  18. class I32Load extends AsmInst[F]
  19. class I32Load16S extends AsmInst[F]
  20. class I32Load16U extends AsmInst[F]
  21. class I32Load8S extends AsmInst[F]
  22. class I32Load8U extends AsmInst[F]
  23. class I32Store extends AsmInst[F]
  24. class I32Store16 extends AsmInst[F]
  25. class I32Store8 extends AsmInst[F]
  26. class I64Const extends AsmInst[F]
  27. class I64Load extends AsmInst[F]
  28. class I64Load16S extends AsmInst[F]
  29. class I64Load16U extends AsmInst[F]
  30. class I64Load32S extends AsmInst[F]
  31. class I64Load32U extends AsmInst[F]
  32. class I64Load8S extends AsmInst[F]
  33. class I64Load8U extends AsmInst[F]
  34. class I64Store extends AsmInst[F]
  35. class I64Store16 extends AsmInst[F]
  36. class I64Store32 extends AsmInst[F]
  37. class I64Store8 extends AsmInst[F]
  38. sealed abstract class Invoking extends AsmInst[F]
  39. class Jump extends AsmInst[F]
  40. class JumpIf extends AsmInst[F]
  41. class LocalGet extends AsmInst[F]
  42. class LocalSet extends AsmInst[F]
  43. class LocalTee extends AsmInst[F]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. object Binop
  20. object Convertop
  21. case object F32Abs extends AsmInst[F] with Product with Serializable
  22. case object F32Add extends AsmInst[F] with Product with Serializable
  23. case object F32Ceil extends AsmInst[F] with Product with Serializable
  24. case object F32ConvertSI32 extends AsmInst[F] with Product with Serializable
  25. case object F32ConvertSI64 extends AsmInst[F] with Product with Serializable
  26. case object F32ConvertUI32 extends AsmInst[F] with Product with Serializable
  27. case object F32ConvertUI64 extends AsmInst[F] with Product with Serializable
  28. case object F32Copysign extends AsmInst[F] with Product with Serializable
  29. case object F32DemoteF64 extends AsmInst[F] with Product with Serializable
  30. case object F32Div extends AsmInst[F] with Product with Serializable
  31. case object F32Eq extends AsmInst[F] with Product with Serializable
  32. case object F32Floor extends AsmInst[F] with Product with Serializable
  33. case object F32Ge extends AsmInst[F] with Product with Serializable
  34. case object F32Gt extends AsmInst[F] with Product with Serializable
  35. case object F32Le extends AsmInst[F] with Product with Serializable
  36. case object F32Lt extends AsmInst[F] with Product with Serializable
  37. case object F32Max extends AsmInst[F] with Product with Serializable
  38. case object F32Min extends AsmInst[F] with Product with Serializable
  39. case object F32Mul extends AsmInst[F] with Product with Serializable
  40. case object F32Ne extends AsmInst[F] with Product with Serializable
  41. case object F32Nearest extends AsmInst[F] with Product with Serializable
  42. case object F32Neg extends AsmInst[F] with Product with Serializable
  43. case object F32ReinterpretI32 extends AsmInst[F] with Product with Serializable
  44. case object F32Sqrt extends AsmInst[F] with Product with Serializable
  45. case object F32Sub extends AsmInst[F] with Product with Serializable
  46. case object F32Trunc extends AsmInst[F] with Product with Serializable
  47. case object F64Abs extends AsmInst[F] with Product with Serializable
  48. case object F64Add extends AsmInst[F] with Product with Serializable
  49. case object F64Ceil extends AsmInst[F] with Product with Serializable
  50. case object F64ConvertSI32 extends AsmInst[F] with Product with Serializable
  51. case object F64ConvertSI64 extends AsmInst[F] with Product with Serializable
  52. case object F64ConvertUI32 extends AsmInst[F] with Product with Serializable
  53. case object F64ConvertUI64 extends AsmInst[F] with Product with Serializable
  54. case object F64Copysign extends AsmInst[F] with Product with Serializable
  55. case object F64Div extends AsmInst[F] with Product with Serializable
  56. case object F64Eq extends AsmInst[F] with Product with Serializable
  57. case object F64Floor extends AsmInst[F] with Product with Serializable
  58. case object F64Ge extends AsmInst[F] with Product with Serializable
  59. case object F64Gt extends AsmInst[F] with Product with Serializable
  60. case object F64Le extends AsmInst[F] with Product with Serializable
  61. case object F64Lt extends AsmInst[F] with Product with Serializable
  62. case object F64Max extends AsmInst[F] with Product with Serializable
  63. case object F64Min extends AsmInst[F] with Product with Serializable
  64. case object F64Mul extends AsmInst[F] with Product with Serializable
  65. case object F64Ne extends AsmInst[F] with Product with Serializable
  66. case object F64Nearest extends AsmInst[F] with Product with Serializable
  67. case object F64Neg extends AsmInst[F] with Product with Serializable
  68. case object F64PromoteF32 extends AsmInst[F] with Product with Serializable
  69. case object F64ReinterpretI64 extends AsmInst[F] with Product with Serializable
  70. case object F64Sqrt extends AsmInst[F] with Product with Serializable
  71. case object F64Sub extends AsmInst[F] with Product with Serializable
  72. case object F64Trunc extends AsmInst[F] with Product with Serializable
  73. case object I32Add extends AsmInst[F] with Product with Serializable
  74. case object I32And extends AsmInst[F] with Product with Serializable
  75. case object I32Clz extends AsmInst[F] with Product with Serializable
  76. case object I32Ctz extends AsmInst[F] with Product with Serializable
  77. case object I32DivS extends AsmInst[F] with Product with Serializable
  78. case object I32DivU extends AsmInst[F] with Product with Serializable
  79. case object I32Eq extends AsmInst[F] with Product with Serializable
  80. case object I32Eqz extends AsmInst[F] with Product with Serializable
  81. case object I32Extend16S extends AsmInst[F] with Product with Serializable
  82. case object I32Extend8S extends AsmInst[F] with Product with Serializable
  83. case object I32GeS extends AsmInst[F] with Product with Serializable
  84. case object I32GeU extends AsmInst[F] with Product with Serializable
  85. case object I32GtS extends AsmInst[F] with Product with Serializable
  86. case object I32GtU extends AsmInst[F] with Product with Serializable
  87. case object I32LeS extends AsmInst[F] with Product with Serializable
  88. case object I32LeU extends AsmInst[F] with Product with Serializable
  89. case object I32LtS extends AsmInst[F] with Product with Serializable
  90. case object I32LtU extends AsmInst[F] with Product with Serializable
  91. case object I32Mul extends AsmInst[F] with Product with Serializable
  92. case object I32Ne extends AsmInst[F] with Product with Serializable
  93. case object I32Or extends AsmInst[F] with Product with Serializable
  94. case object I32Popcnt extends AsmInst[F] with Product with Serializable
  95. case object I32ReinterpretF32 extends AsmInst[F] with Product with Serializable
  96. case object I32RemS extends AsmInst[F] with Product with Serializable
  97. case object I32RemU extends AsmInst[F] with Product with Serializable
  98. case object I32Rotl extends AsmInst[F] with Product with Serializable
  99. case object I32Rotr extends AsmInst[F] with Product with Serializable
  100. case object I32Shl extends AsmInst[F] with Product with Serializable
  101. case object I32ShrS extends AsmInst[F] with Product with Serializable
  102. case object I32ShrU extends AsmInst[F] with Product with Serializable
  103. case object I32Sub extends AsmInst[F] with Product with Serializable
  104. case object I32TruncSF32 extends AsmInst[F] with Product with Serializable
  105. case object I32TruncSF64 extends AsmInst[F] with Product with Serializable
  106. case object I32TruncSatSF32 extends AsmInst[F] with Product with Serializable
  107. case object I32TruncSatSF64 extends AsmInst[F] with Product with Serializable
  108. case object I32TruncSatUF32 extends AsmInst[F] with Product with Serializable
  109. case object I32TruncSatUF64 extends AsmInst[F] with Product with Serializable
  110. case object I32TruncUF32 extends AsmInst[F] with Product with Serializable
  111. case object I32TruncUF64 extends AsmInst[F] with Product with Serializable
  112. case object I32WrapI64 extends AsmInst[F] with Product with Serializable
  113. case object I32Xor extends AsmInst[F] with Product with Serializable
  114. case object I64Add extends AsmInst[F] with Product with Serializable
  115. case object I64And extends AsmInst[F] with Product with Serializable
  116. case object I64Clz extends AsmInst[F] with Product with Serializable
  117. case object I64Ctz extends AsmInst[F] with Product with Serializable
  118. case object I64DivS extends AsmInst[F] with Product with Serializable
  119. case object I64DivU extends AsmInst[F] with Product with Serializable
  120. case object I64Eq extends AsmInst[F] with Product with Serializable
  121. case object I64Eqz extends AsmInst[F] with Product with Serializable
  122. case object I64Extend16S extends AsmInst[F] with Product with Serializable
  123. case object I64Extend32S extends AsmInst[F] with Product with Serializable
  124. case object I64Extend8S extends AsmInst[F] with Product with Serializable
  125. case object I64ExtendSI32 extends AsmInst[F] with Product with Serializable
  126. case object I64ExtendUI32 extends AsmInst[F] with Product with Serializable
  127. case object I64GeS extends AsmInst[F] with Product with Serializable
  128. case object I64GeU extends AsmInst[F] with Product with Serializable
  129. case object I64GtS extends AsmInst[F] with Product with Serializable
  130. case object I64GtU extends AsmInst[F] with Product with Serializable
  131. case object I64LeS extends AsmInst[F] with Product with Serializable
  132. case object I64LeU extends AsmInst[F] with Product with Serializable
  133. case object I64LtS extends AsmInst[F] with Product with Serializable
  134. case object I64LtU extends AsmInst[F] with Product with Serializable
  135. case object I64Mul extends AsmInst[F] with Product with Serializable
  136. case object I64Ne extends AsmInst[F] with Product with Serializable
  137. case object I64Or extends AsmInst[F] with Product with Serializable
  138. case object I64Popcnt extends AsmInst[F] with Product with Serializable
  139. case object I64ReinterpretF64 extends AsmInst[F] with Product with Serializable
  140. case object I64RemS extends AsmInst[F] with Product with Serializable
  141. case object I64RemU extends AsmInst[F] with Product with Serializable
  142. case object I64Rotl extends AsmInst[F] with Product with Serializable
  143. case object I64Rotr extends AsmInst[F] with Product with Serializable
  144. case object I64Shl extends AsmInst[F] with Product with Serializable
  145. case object I64ShrS extends AsmInst[F] with Product with Serializable
  146. case object I64ShrU extends AsmInst[F] with Product with Serializable
  147. case object I64Sub extends AsmInst[F] with Product with Serializable
  148. case object I64TruncSF32 extends AsmInst[F] with Product with Serializable
  149. case object I64TruncSF64 extends AsmInst[F] with Product with Serializable
  150. case object I64TruncSatSF32 extends AsmInst[F] with Product with Serializable
  151. case object I64TruncSatSF64 extends AsmInst[F] with Product with Serializable
  152. case object I64TruncSatUF32 extends AsmInst[F] with Product with Serializable
  153. case object I64TruncSatUF64 extends AsmInst[F] with Product with Serializable
  154. case object I64TruncUF32 extends AsmInst[F] with Product with Serializable
  155. case object I64TruncUF64 extends AsmInst[F] with Product with Serializable
  156. case object I64Xor extends AsmInst[F] with Product with Serializable
  157. object Load
  158. object LoadN
  159. case object MemoryGrow extends AsmInst[F] with Product with Serializable
  160. case object MemorySize extends AsmInst[F] with Product with Serializable
  161. case object Nop extends AsmInst[F] with Product with Serializable
  162. object Relop
  163. case object Return extends AsmInst[F] with Product with Serializable
  164. object SatConvertop
  165. case object Select extends AsmInst[F] with Product with Serializable
  166. object Store
  167. object StoreN
  168. object Testop
  169. object Unop
  170. case object Unreachable extends AsmInst[F] with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped