WasmConfig class final

Configuration for a WasmEngine.

A config is consumed by the engine that is built from it; using it afterwards throws a StateError.

Constructors

WasmConfig()

Properties

asyncStackSize ← int
The size of the stack of an async wasm function, in bytes.
no getter
bulkMemory ← bool
The bulk-memory proposal.
no getter
componentModel ← bool
The component model.
no getter
consumeFuel ← bool
Whether WebAssembly can consume fuel (Store.fuel).
no getter
debugInfo ← bool
Whether to emit DWARF debug information and name the compiled symbols.
no getter
epochInterruption ← bool
Whether epoch interruption is available.
no getter
exceptions ← bool
The exceptions proposal.
no getter
functionReferences ← bool
The function-references proposal.
no getter
gc ← bool
The gc proposal.
no getter
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether the native object has already been released.
no setterinherited
maxWasmStack ← int
The largest stack a wasm function may use, in bytes.
no getter
memory64 ← bool
The memory64 proposal.
no getter
memoryMayMove ← bool
Whether linear memories may be moved in memory when they grow.
no getter
multiMemory ← bool
The multi-memory proposal.
no getter
multiValue ← bool
The multi-value proposal.
no getter
optLevel ← WasmOptLevel
How hard to optimise.
no getter
parallelCompilation ← bool
Whether cranelift may use several threads to compile one module.
no getter
pointer → Pointer<wasm_config_t>
The native pointer, for use by the layers above.
no setterinherited
referenceTypes ← bool
The reference-types proposal.
no getter
relaxedSimd ← bool
The relaxed-simd proposal.
no getter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharedMemory ← bool
Shared linear memories.
no getter
signalsBasedTraps ← bool
Whether traps are implemented with OS signals (much faster).
no getter
simd ← bool
The simd proposal.
no getter
stackSwitching ← bool
The stack-switching proposal.
no getter
strategy ← WasmStrategy
Which compiler to use.
no getter
tailCall ← bool
The tail-call proposal.
no getter
threads ← bool
The threads proposal (shared memories and atomics).
no getter

Methods

checkNotDisposed() → void
Throws a StateError if this object has been disposed.
inherited
disown() → void
Gives up ownership without releasing the object.
inherited
dispose() → void
Releases the native object. Idempotent.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited