メインコンテンツまでスキップ

Struct ValidationContext

Context object for instruction validation.

Assembly: WaaS.Core.dll​
View Source​
Declaration
public readonly struct ValidationContext

Properties​

Module​

View Source​
Declaration
public Module Module { get; }

CurrentFunction​

View Source​
Declaration
public Function CurrentFunction { get; }

Methods​

GetFunctionType(uint)​

View Source​
Declaration
public FunctionType GetFunctionType(uint runtimeFunctionIndex)
Returns​

WaaS.Models.FunctionType

Parameters​
TypeName
System.UInt32runtimeFunctionIndex

GetLocalType(uint)​

View Source​
Declaration
public ValueType GetLocalType(uint index)
Returns​

WaaS.ValueType

Parameters​
TypeName
System.UInt32index

GetGlobalType(uint)​

View Source​
Declaration
public GlobalType GetGlobalType(uint index)
Returns​

WaaS.Models.GlobalType

Parameters​
TypeName
System.UInt32index

GetTableType(uint)​

View Source​
Declaration
public TableType GetTableType(uint index)
Returns​

WaaS.Models.TableType

Parameters​
TypeName
System.UInt32index

GetMemoryType(uint)​

View Source​
Declaration
public MemoryType GetMemoryType(uint index)
Returns​

WaaS.Models.MemoryType

Parameters​
TypeName
System.UInt32index

ValidateFunctionReference(uint, bool)​

Validates ref.func and returns its type.

View Source​
Declaration
public ValueType ValidateFunctionReference(uint functionIndex, bool inFunctionBody)
Returns​

WaaS.ValueType

Parameters​
TypeNameDescription
System.UInt32functionIndex
System.BooleaninFunctionBodyThe functions referenced in function bodies must be declared outside the function bodies (in elements,
exports or the initializers of globals).

GetElement(uint)​

View Source​
Declaration
public Element GetElement(uint index)
Returns​

WaaS.Models.Element

Parameters​
TypeName
System.UInt32index

ValidateDataIndex(uint)​

View Source​
Declaration
public void ValidateDataIndex(uint index)
Parameters​
TypeName
System.UInt32index