gwr/syntax/instruction

Types

Function bodies, initialization values for globals, elements and offsets of element segments, and offsets of data segments are given as expressions, which are sequences of instructions terminated by an marker.

https://webassembly.github.io/spec/core/syntax/instructions.html#expressions

pub type Expression =
  List(Instruction)
pub type Instruction {
  Unreachable
  NoOp
  LocalGet(index: index.LocalIndex)
  I32Add
  I32Const(value: Int)
  End
}

Constructors

  • Unreachable

    https://webassembly.github.io/spec/core/binary/instructions.html#control-instructions

  • NoOp
  • LocalGet(index: index.LocalIndex)

    https://webassembly.github.io/spec/core/binary/instructions.html#variable-instructions

  • I32Add

    https://webassembly.github.io/spec/core/binary/instructions.html#numeric-instructions

  • I32Const(value: Int)
  • End

    https://webassembly.github.io/spec/core/binary/instructions.html#expressions

Search Document