Class V128MemoryInstruction
Base class for vector instructions which access the memory.
Assembly: WaaS.Core.dll
View Source
Declaration
public abstract class V128MemoryInstruction : Instruction
Inheritance: System.Object -> WaaS.Models.Instruction
Derived:
WaaS.Models.StoreV128, WaaS.Models.V128LoadInstruction, WaaS.Models.V128LoadLaneInstruction<TLane>, WaaS.Models.V128StoreLaneInstruction<TLane>
Properties
Align
View Source
Declaration
public uint Align { get; }
Offset
View Source
Declaration
public uint Offset { get; }
AccessSize
Number of bytes the instruction reads or writes.
View Source
Declaration
protected abstract int AccessSize { get; }
Methods
Validate(in ValidationContext)
Validates the instruction.
View Source
Declaration
public override void Validate(in ValidationContext context)
Parameters
| Type | Name |
|---|---|
| WaaS.Models.ValidationContext | context |
GetEffectiveAddress(WasmStackFrame, uint)
Gets the reference to the memory at the effective address. Traps if the access is out of bounds.
View Source
Declaration
protected ref byte GetEffectiveAddress(WasmStackFrame current, uint address)
Returns
System.Byte
Parameters
| Type | Name |
|---|---|
| WaaS.Runtime.WasmStackFrame | current |
System.UInt32 | address |