Explorer

core.wasm-runtime-values-of

description
Runtime function 19 of the definy compiler (exported as values_of): values_of(value) -> values: the items of a list, the keys and values of a record (alternately), or the captured variables of a function. Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  0,
  @wasm.local-get,
  0,
  @wasm.gc-prefix,
  @wasm.struct-get,
  @core.wasm-type-value,
  0,
  @wasm.i32-const,
  5,
  @wasm.i32-eq,
  @wasm.if,
  @wasm.value-type-ref-null,
  @core.wasm-type-values,
  @wasm.local-get,
  0,
  @wasm.gc-prefix,
  @wasm.ref-cast,
  @core.wasm-type-closure,
  @wasm.gc-prefix,
  @wasm.struct-get,
  @core.wasm-type-closure,
  2,
  @wasm.else,
  @wasm.local-get,
  0,
  @wasm.gc-prefix,
  @wasm.ref-cast,
  @core.wasm-type-list,
  @wasm.gc-prefix,
  @wasm.struct-get,
  @core.wasm-type-list,
  1,
  @wasm.end,
  @wasm.end
]
visibility
public
core.wasm-runtime-values-of (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: 0Zb2HYgQdlE6kGmzJL68R0ErRVCmX4Z19dcv3rUpuzA
content hash: srtj8Jql4vHOU6ZzLcnsd2nrMBI85lt6vzrLQcgO9TY