Class V128LoadInstruction
Base class for vector instructions which load a v128 from the memory.
Assembly: WaaS.Core.dll
View Source
Declaration
public abstract class V128LoadInstruction : V128MemoryInstruction
Inheritance: System.Object -> WaaS.Models.Instruction -> WaaS.Models.V128MemoryInstruction
Derived:
WaaS.Models.LoadV128, WaaS.Models.V128LoadExtendInstruction<TLane, TResultLane>, WaaS.Models.V128LoadSplatInstruction<TLane>, WaaS.Models.V128LoadZeroInstruction<TLane>
Methods
Execute(WasmStackFrame)
Executes the instruction.
View Source
Declaration
public override void Execute(WasmStackFrame current)
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.WasmStackFrame | current |
Read(ref byte)
View Source
Declaration
protected abstract V128 Read(ref byte source)
Returns
Parameters
| Type | Name |
|---|---|
System.Byte | source |
PreValidateStackState(in ValidationContext)
Get the number of values to pop and push from the stack to validate stack depth.
View Source
Declaration
public override (uint popCount, uint pushCount) PreValidateStackState(in ValidationContext context)
Returns
System.ValueTuple<System.UInt32,System.UInt32>
Parameters
| Type | Name |
|---|---|
| WaaS.Models.ValidationContext | context |
ValidateStackState(in ValidationContext, ref ValidationBlockStackState)
Simulates stack operations to validate the stack state.
View Source
Declaration
public override void ValidateStackState(in ValidationContext context, ref ValidationBlockStackState stackState)
Parameters
| Type | Name |
|---|---|
| WaaS.Models.ValidationContext | context |
| WaaS.Models.ValidationBlockStackState | stackState |