Explorer

core.wasm-runtime-list-concat

description
Runtime function 7 of the definy compiler: list_concat(a, b) -> value: a new list of the items of a followed by the items of b (a or b itself when the other is empty). Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  3,
  2,
  @wasm.value-type-ref-null,
  @core.wasm-type-values,
  2,
  @wasm.value-type-i32,
  1,
  @wasm.value-type-ref-null,
  @core.wasm-type-values,
  @wasm.local-get,
  0,
  @wasm.call,
  19,
  @wasm.local-tee,
  2,
  @wasm.gc-prefix,
  @wasm.array-len,
  @wasm.local-tee,
  4,
  @wasm.i32-eqz,
  @wasm.if,
  @wasm.block-type-empty,
  @wasm.local-get,
  1,
  @wasm.return,
  @wasm.end,
  @wasm.local-get,
  1,
  @wasm.call,
  19,
  @wasm.local-tee,
  3,
  @wasm.gc-prefix,
  @wasm.array-len,
  @wasm.local-tee,
  5,
  @wasm.i32-eqz,
  @wasm.if,
  @wasm.block-type-empty,
  @wasm.local-get,
  0,
  @wasm.return,
  @wasm.end,
  @wasm.local-get,
  4,
  @wasm.local-get,
  5,
  @wasm.i32-add,
  @wasm.gc-prefix,
  @wasm.array-new-default,
  @core.wasm-type-values,
  @wasm.local-set,
  6,
  @wasm.local-get,
  6,
  @wasm.i32-const,
  0,
  @wasm.local-get,
  2,
  @wasm.i32-const,
  0,
  @wasm.local-get,
  4,
  @wasm.gc-prefix,
  @wasm.array-copy,
  @core.wasm-type-values,
  @core.wasm-type-values,
  @wasm.local-get,
  6,
  @wasm.local-get,
  4,
  @wasm.local-get,
  3,
  @wasm.i32-const,
  0,
  @wasm.local-get,
  5,
  @wasm.gc-prefix,
  @wasm.array-copy,
  @core.wasm-type-values,
  @core.wasm-type-values,
  @wasm.i32-const,
  3,
  @wasm.local-get,
  6,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-list,
  @wasm.end
]
visibility
public
core.wasm-runtime-list-concat (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: 3MjBCTMKWA9oHTfEQb-NHfB9RQTz_L-Tj64CjVisYQU
content hash: J6OaqkxHiCUVSfF_ek1ZcgZTdJwIjpwOhHOt6KvGg68