wasm
Wasm instruction opcodes
Types
- Opcode
- Wasm instruction opcodes
- MiscOpcode
- Opcodes that require a prefix `0xFC`.
- SimdOpcode
- Simd opcodes that require a prefix `0xFD`.
- AtomicsOpcode
- Atomic opcodes that require a prefix `0xFE`.
- Valtype
- Enum representing all Wasm value types as per spec:
- RefType
- Reference types, where the funcref references to a function regardless of its type
- Limits
- Limits classify the size range of resizeable storage associated with memory types and table types.
- InitExpression
- Initialization expressions are used to set the initial value on an object
- Memory
- Describes the layout of the memory where `min` represents
- Section
- Wasm module sections as per spec:
- ExternalKind
- The kind of the type when importing or exporting to/from the host environment.
- NameSubsection
- Defines the enum values for each subsection id for the "Names" custom section
- BlockType
- Represents a block which will not return a value
= 0x70
Values
- element_type
- = 0x70
- function_type
- = 0x60
- result_type
- = 0x40
- magic
- = [_]u8{ 0x00, 0x61, 0x73, 0x6D }
- version
- = [_]u8{ 0x01, 0x00, 0x00, 0x00 }
- page_size
- = 64 * 1024