Options
All
  • Public
  • Public/Protected
  • All
Menu

Reference for a value of a given type T

Pointer stored on gc value stack, points to value in heap

see: planning/brainstorm/ref_stack_vars.md

Type Parameters

Hierarchy

Index

Constructors

Properties

offsetBytes: number = 0
token: LexerToken
type: T
valueType: ValueType
ValueTypes: { 0: SyntaxType; 1: SyntaxType; 2: SyntaxType; 3: SyntaxType; 4: SyntaxType; 5: SyntaxType; 6: SyntaxType; 7: SyntaxType; 8: SyntaxType; 9: SyntaxType } = ...
noRecFlatPrimitiveList: boolean = false

Prevent recursive calls to RefType.flatPrimitiveList()

remarks

Correct solution would be to pass an argument but that's ugly

Methods

  • check(type: Type): boolean
  • getWasmTypeName(): string
  • hasRefs(): boolean
  • Determines if objects of this type need to be stored on separate stack or not

    Returns boolean

    true if the type contains reference fields

  • isUnit(): boolean
  • toString(): string

Generated using TypeDoc