Class LocalTee
Represents "local.tee" instruction.
Assembly: WaaS.Core.dll
Declaration
[OpCode(34)]
public class LocalTee : Instruction
Inheritance: System.Object -> WaaS.Models.Instruction
Properties
LocalIndex
View Source
Declaration
public uint LocalIndex { get; }
Methods
Execute(WasmStackFrame)
Executes the instruction.
View Source
Declaration
public override void Execute(WasmStackFrame current)
Parameters
| Type | Name | 
|---|---|
| WaaS.Runtime.WasmStackFrame | current | 
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 |