Skip to main content

Crate tinywasm_types

Crate tinywasm_types 

Source
Expand description

Types used by tinywasm and tinywasm_parser.

Modules§

archive

Structs§

ArrayType
A WebAssembly array type.
CompactMemoryArg
A compact memory immediate used by optimized instructions.
Data
Element
ExceptionHandler
A statically lowered exception handler range.
Export
A WebAssembly Module Export
FieldType
A struct field or array element type.
FuncType
The type of a WebAssembly function.
Global
GlobalType
A WebAssembly global type.
I32LocalArg
A 32-bit immediate and local operand that fit in an instruction payload.
Import
LocalTripleArg
Three local operands that fit in an instruction payload.
MemoryLaneArg
An indexed memory argument and SIMD lane.
MemoryLocalArg
An indexed memory argument and up to two local operands.
MemoryType
A WebAssembly memory type.
Module
TinyWasm’s parsed and lowered representation of a WebAssembly module.
ModuleExport
A module export descriptor.
ModuleFuncIdx
A function index in a WebAssembly module’s function index space.
ModuleImport
A module import descriptor.
Operand64
A typed packed 8-byte operand value.
Operand128
A typed packed 16-byte operand value.
OperandIdx
An index into the operand lane used by T.
PackedOp
An operation packed inline with an indexed operand.
RefType
A WebAssembly reference type.
Shared
An atomically reference-counted pointer. A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
StructType
A WebAssembly struct type.
SubType
A type with optional declared subtyping.
TableDefinition
TableType
A WebAssembly table type.
TagType
A WebAssembly tag type.
TargetLocalArg
A branch target and local operand that fit in an instruction payload.
TypeSection
The dense type index space of a WebAssembly module.
ValueCounts
WasmFunction
WasmFunctionData
WeakShared
A non-owning pointer paired with Shared. Weak is a version of Arc that holds a non-owning reference to the managed allocation.

Enums§

AbstractHeapType
An abstract WebAssembly heap type.
BinOp
BinOp128
BranchTableOperand
Identifies a packed branch-table operand.
CmpOp
An integer comparison operator, currently only used for conditional jumps.
CompactMemoryOperand
Identifies the packed compact memory operand layout.
CompositeType
A function, struct, or array type.
ConstInstruction
DataKind
ElementItem
ElementKind
ExceptionCatch
A catch clause attached to a lowered try_table instruction.
ExportType
Exported entity type.
ExternVal
A WebAssembly External Value.
ExternalKind
A WebAssembly External Kind.
GlobalUpdateOperand
Identifies a packed global update and branch operand.
ImportKind
ImportType
Imported entity type.
Instruction
A TinyWasm bytecode instruction.
LocalUpdateCmpOperand
Identifies a packed local update, comparison, and branch operand.
LocalUpdateOperand
Identifies a packed local update and branch operand.
MemoryArch
MemoryFillOperand
Identifies a packed constant memory-fill operand.
MemoryOperand
Identifies the packed full-width memory operand layout.
StorageType
A field’s packed or unpacked storage type.
ValueLane
The physical storage lane used by a WasmType.
WasmType
Type of a WebAssembly value.

Type Aliases§

Addr
A WebAssembly Address.
ConstIdx
DataAddr
ElemAddr
ExternAddr
FuncAddr
GlobalAddr
LocalAddr
MemAddr
ModuleInstanceId
Operand64Idx
An index into the 64-bit operand lane.
Operand128Idx
An index into the 128-bit operand lane.
PackedOp64
An operation packed with an index into the 64-bit operand lane.
PackedOp128
An operation packed with an index into the 128-bit operand lane.
TableAddr
TagAddr
TypeAddr
An address in the current type space.