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
Properties
- asyncStackSize ← int
-
The size of the stack of an async wasm function, in bytes.
no getter
- bulkMemory ← bool
-
The
bulk-memoryproposal.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
exceptionsproposal.no getter - functionReferences ← bool
-
The
function-referencesproposal.no getter - gc ← bool
-
The
gcproposal.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
memory64proposal.no getter - memoryMayMove ← bool
-
Whether linear memories may be moved in memory when they grow.
no getter
- multiMemory ← bool
-
The
multi-memoryproposal.no getter - multiValue ← bool
-
The
multi-valueproposal.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-typesproposal.no getter - relaxedSimd ← bool
-
The
relaxed-simdproposal.no getter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Shared linear memories.
no getter
- signalsBasedTraps ← bool
-
Whether traps are implemented with OS signals (much faster).
no getter
- simd ← bool
-
The
simdproposal.no getter - stackSwitching ← bool
-
The
stack-switchingproposal.no getter - strategy ← WasmStrategy
-
Which compiler to use.
no getter
- tailCall ← bool
-
The
tail-callproposal.no getter - threads ← bool
-
The
threadsproposal (sharedmemories 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