Explorer

core.wasm-runtime-list-append

description
Runtime function 8 of the definy compiler: list_append(list, item) -> value: a new list with item added at the end. Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  3,
  1,
  @wasm.value-type-ref-null,
  @core.wasm-type-values,
  1,
  @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,
  3,
  @wasm.i32-const,
  1,
  @wasm.i32-add,
  @wasm.gc-prefix,
  @wasm.array-new-default,
  @core.wasm-type-values,
  @wasm.local-set,
  4,
  @wasm.local-get,
  4,
  @wasm.i32-const,
  0,
  @wasm.local-get,
  2,
  @wasm.i32-const,
  0,
  @wasm.local-get,
  3,
  @wasm.gc-prefix,
  @wasm.array-copy,
  @core.wasm-type-values,
  @core.wasm-type-values,
  @wasm.local-get,
  4,
  @wasm.local-get,
  3,
  @wasm.local-get,
  1,
  @wasm.gc-prefix,
  @wasm.array-set,
  @core.wasm-type-values,
  @wasm.i32-const,
  3,
  @wasm.local-get,
  4,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-list,
  @wasm.end
]
visibility
public
core.wasm-runtime-list-append (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: XCg_Yowk7T_atd5VFvdqcD_hZjXgvxqF12gE_FTziM0
content hash: IgHrKqwDYHjMPw1IfSd93pHUhP_ORRTb1OoXrukDSWc