Explorer

core.wasm-runtime-variant-new

description
Runtime function 26 of the definy compiler (exported as variant_new): variant_new(tag, payload) -> value: a variant (the payload is null when absent). Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  0,
  @wasm.i32-const,
  6,
  @wasm.local-get,
  0,
  @wasm.gc-prefix,
  @wasm.ref-cast,
  @core.wasm-type-string,
  @wasm.local-get,
  1,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-variant,
  @wasm.end
]
visibility
public
core.wasm-runtime-variant-new (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: rgPBUJI93CoFh2YKka5Qx9nbphnM_oacjKuX0Uq3vow
content hash: tC4k9EZs8IwVE7br213SUVHEWoYDdt2_2aTn41N-MTg