package interpreter
- Alphabetic
- Public
- Protected
Type Members
- class Asm[F[_]] extends AnyRef
- sealed trait AsmInst[F[_]] extends AnyRef
Asm
is the interpreted language.Asm
is the interpreted language. It closely mirrors the WebAssembly bytecode with few differences:- it has typed breaks;
- it has no blocks, loops, or if structures, they are all compiled to breaks;
- it has a parameterized drop operation to drop several elements from the stack at once;
- it has arbitrary (un)conditional jump instructions.
This results in a language where labels are pre-compiled, avoiding indirections, and avoiding managing them on the stack. The assembly language is also less safe as it has arbitrary jumps inside a method body. The bytecode compiler is responsible for generating correctly typed assembly code from the bytecode.
Breaks are parameterized by the jump addresses, the number of return values and the number of elements to discard from the stack before pushing return values back.
- sealed trait Continuation[+F[_]] extends AnyRef
- case class Done(res: Vector[Long]) extends Continuation[Nothing] with Product with Serializable
- case class Suspend[F[_]](res: F[Vector[Long]]) extends Continuation[F] with Product with Serializable
Value Members
- case object Continue extends Continuation[Nothing] with Product with Serializable