Explorer

core.wasm-runtime-string-concat

description
Runtime function 9 of the definy compiler: string_concat(a, b) -> value: a new string of the bytes of a followed by the bytes of b. 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-bytes,
  2,
  @wasm.value-type-i32,
  1,
  @wasm.value-type-ref-null,
  @core.wasm-type-bytes,
  @wasm.local-get,
  0,
  @wasm.gc-prefix,
  @wasm.ref-cast,
  @core.wasm-type-string,
  @wasm.gc-prefix,
  @wasm.struct-get,
  @core.wasm-type-string,
  1,
  @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.gc-prefix,
  @wasm.ref-cast,
  @core.wasm-type-string,
  @wasm.gc-prefix,
  @wasm.struct-get,
  @core.wasm-type-string,
  1,
  @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-bytes,
  @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-bytes,
  @core.wasm-type-bytes,
  @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-bytes,
  @core.wasm-type-bytes,
  @wasm.i32-const,
  2,
  @wasm.local-get,
  6,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-string,
  @wasm.end
]
visibility
public
core.wasm-runtime-string-concat (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: nDIV-5JvTz16kRWIxnDKd4vfunGn2EQzELfMA-HymP8
content hash: evFtULN8hDfM6Cw2KqZYnWqyi7sHwhLVZhB4O2ksKp0