Explorer

core.wasm-runtime-list-hash-index-find

description
Runtime function 35 of the definy compiler: list_hash_index_find(index, field, value) -> value: list_find_last_by_field (32) on the bucket string_hash(value) AND (count - 1) of the index. none for an empty index. Local variable declarations and instructions, without the byte length (wasm.code-entry adds it)
type
List<Number>
expression
[
  2,
  1,
  @wasm.value-type-ref-null,
  @core.wasm-type-values,
  1,
  @wasm.value-type-i32,
  @wasm.local-get,
  0,
  @wasm.call,
  19,
  @wasm.local-tee,
  3,
  @wasm.ref-is-null,
  @wasm.if,
  @wasm.block-type-empty,
  @wasm.i32-const,
  6,
  @wasm.global-get,
  4,
  @wasm.ref-null,
  @core.wasm-type-value,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-variant,
  @wasm.return,
  @wasm.end,
  @wasm.local-get,
  3,
  @wasm.gc-prefix,
  @wasm.array-len,
  @wasm.local-tee,
  4,
  @wasm.i32-eqz,
  @wasm.if,
  @wasm.block-type-empty,
  @wasm.i32-const,
  6,
  @wasm.global-get,
  4,
  @wasm.ref-null,
  @core.wasm-type-value,
  @wasm.gc-prefix,
  @wasm.struct-new,
  @core.wasm-type-variant,
  @wasm.return,
  @wasm.end,
  @wasm.local-get,
  3,
  @wasm.local-get,
  2,
  @wasm.call,
  33,
  @wasm.local-get,
  4,
  @wasm.i32-const,
  1,
  @wasm.i32-sub,
  @wasm.i32-and,
  @wasm.gc-prefix,
  @wasm.array-get,
  @core.wasm-type-values,
  @wasm.local-get,
  1,
  @wasm.local-get,
  2,
  @wasm.call,
  32,
  @wasm.end
]
visibility
public
core.wasm-runtime-list-hash-index-find (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: qVC6B_pkhpIYqSaKpY4gJ39sSeVPmmiyvNWxFPFeFXk
content hash: M3HU6OPt4GF8ZXk7kryDfOgW9FzPKZSjmvgWryV7gPw