ExpressionBytecode class final
A compiled program: straight-line instructions over lanes of doubles.
Constructors
- ExpressionBytecode.compile(Expression expression)
-
expressioncompiled.factory
Properties
- code → Uint16List
-
The instructions, eight
u16each.final - constants → Float64List
-
The constant pool.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputs
→ List<
ExpressionBytecodeInput> -
What the host writes before a run, in the order a tree walk first
meets each variable.
final
- instructionCount → int
-
How many instructions there are.
no setter
- lanes → int
-
How many lanes a run needs.
final
- resultDimension → int
-
final
- resultLane → int
-
final
- resultWidth → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → Uint8List - The program as bytes, header first.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
List< List< slots) → List<double> >double> - The value, given each of inputs' components in order.
-
runNamed(
Map< String, List< values) → List<double> >double> - The value, given each input's components by name in coherent units.
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
) → void - Checks every instruction: its lanes in range, its widths, and its units against its operands'.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
Uint8List bytes) → ExpressionBytecode -
The program
byteshold, verified.