Skip to main content

Class MemoryCopy

Represents "memory.init" instruction.

Assembly: WaaS.Core.dll​
Declaration
[OpCode(252, 10)]
public class MemoryCopy : Instruction

Inheritance: System.Object -> WaaS.Models.Instruction

Properties​

Reserved0​

View Source​
Declaration
public byte Reserved0 { get; }

Reserved1​

View Source​
Declaration
public byte Reserved1 { get; }

Methods​

Execute(WasmStackFrame)​

Executes the instruction.

View Source​
Declaration
public override void Execute(WasmStackFrame current)
Parameters​
TypeName
WaaS.Runtime.WasmStackFramecurrent

Validate(in ValidationContext)​

Validates the instruction.

View Source​
Declaration
public override void Validate(in ValidationContext context)
Parameters​
TypeName
WaaS.Models.ValidationContextcontext

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​
TypeName
WaaS.Models.ValidationContextcontext

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​
TypeName
WaaS.Models.ValidationContextcontext
WaaS.Models.ValidationBlockStackStatestackState