Home
last modified time | relevance | path

Searched refs:funcref (Results 1 – 25 of 119) sorted by relevance

12345

/wasmtime-44.0.1/tests/misc_testsuite/winch/
H A Dtable_set.wast4 (table $t3 2 funcref)
8 (func $f3 (export "get-funcref") (param $i i32) (result funcref)
12 (func (export "set-funcref") (param $i i32) (param $r funcref)
15 (func (export "set-funcref-from") (param $i i32) (param $j i32)
20 (assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
21 (assert_return (invoke "set-funcref-from" (i32.const 0) (i32.const 1)))
22 (assert_return (invoke "set-funcref" (i32.const 0) (ref.null func)))
23 (assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
25 (assert_trap (invoke "set-funcref" (i32.const 3) (ref.null func)) "out of bounds table access")
26 (assert_trap (invoke "set-funcref" (i32.const -1) (ref.null func)) "out of bounds table access")
[all …]
H A Dtable_get.wast4 (table $t3 3 funcref)
7 (func $f3 (export "get-funcref") (param $i i32) (result funcref)
12 (assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
13 (assert_trap (invoke "get-funcref" (i32.const 3)) "out of bounds table access")
14 (assert_trap (invoke "get-funcref" (i32.const -1)) "out of bounds table access")
H A Dtable_grow.wast4 (table $t1 0 funcref)
6 (func (export "grow-by-10") (param $r funcref) (result i32)
9 (func (export "grow-over") (param $r funcref) (result i32)
22 (table $t 0x10 funcref)
23 (func $f (export "grow") (param $r funcref) (result i32)
H A Dtable_fill.wast9 ;; Define two tables of funcref
10 (table $t1 3 funcref)
11 (table $t2 10 funcref)
18 (local $ref funcref)
23 (func (export "get") (param $i i32) (result funcref)
70 (table (export "t") 1 funcref)
74 (import "t" "t" (table $t1 1 funcref))
75 (table $t2 2 funcref)
77 (func (export "fill1") (param i32 funcref i32)
83 (func (export "fill2") (param i32 funcref i32)
H A Dref-types-basic.wast10 (table $t 10 funcref)
35 (func (export "select-funcref") (param $c i32) (result funcref)
36 (select (result funcref) (ref.func $returns-42) (ref.func $returns-7) (local.get $c))
38 (func (export "select-null-first") (param $c i32) (result funcref)
39 (select (result funcref) (ref.null func) (ref.func $returns-7) (local.get $c))
43 (func (export "table-get") (param $i i32) (result funcref)
78 (assert_return (invoke "select-funcref" (i32.const 1)) (ref.func 0))
79 (assert_return (invoke "select-funcref" (i32.const 0)) (ref.func 1))
/wasmtime-44.0.1/tests/misc_testsuite/function-references/
H A Dtable_set.wast6 (table $t3 2 funcref)
14 (func $f3 (export "get-funcref") (param $i i32) (result funcref)
24 (func (export "set-funcref") (param $i i32) (param $r funcref)
27 (func (export "set-funcref-from") (param $i i32) (param $j i32)
34 (func (export "is_null-funcref") (param $i i32) (result i32)
52 (assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
55 (assert_return (invoke "set-funcref" (i32.const 0) (ref.null func)))
56 (assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
115 (table $t 10 funcref)
116 (func $type-value-externref-vs-funcref (param $r externref)
[all …]
H A Dtable_get.wast6 (table $t3 3 funcref)
19 (func $f3 (export "get-funcref") (param $i i32) (result funcref)
26 (func (export "is_null-funcref") (param $i i32) (result i32)
37 (assert_return (invoke "get-funcref" (i32.const 0)) (ref.null func))
38 (assert_return (invoke "is_null-funcref" (i32.const 1)) (i32.const 0))
39 (assert_return (invoke "is_null-funcref" (i32.const 2)) (i32.const 0))
44 (assert_trap (invoke "get-funcref" (i32.const 3)) "out of bounds table access")
47 (assert_trap (invoke "get-funcref" (i32.const -1)) "out of bounds table access")
84 (func $type-result-externref-vs-funcref (result funcref)
93 (table $t1 1 funcref)
[all …]
H A Dinstance.wast9 (table (export "tab") 10 funcref (ref.null func))
21 (import "I1" "tab" (table $tab1 10 funcref))
22 (import "I2" "tab" (table $tab2 10 funcref))
33 (func (export "tab") (result funcref)
53 (import "I1" "tab" (table $tab1 10 funcref))
54 (import "I1" "tab" (table $tab2 10 funcref))
65 (func (export "tab") (result funcref)
84 (table $tab 10 funcref (ref.null func))
101 (import "I" "tab1" (table $tab1 10 funcref))
102 (import "I" "tab2" (table $tab2 10 funcref))
[all …]
H A Dtable_grow.wast43 (table $t 0x10 funcref)
98 (table $t 10 funcref)
103 (func (export "check-table-null") (param i32 i32) (result funcref)
104 (local funcref)
164 (table $t 0 funcref)
165 (func $type-init-externref-vs-funcref (param $r externref) (result i32)
175 (func $type-init-funcref-vs-typed-func (param $r funcref) (result i32)
H A Dtable_fill.wast119 (table $t 0 funcref)
120 (func $type-value-vs-funcref (param $r externref)
130 (func $type-funcref-vs-typed-func (param $r funcref)
149 (table $t2 1 funcref)
150 (func $type-value-externref-vs-funcref-multi (param $r externref)
/wasmtime-44.0.1/tests/misc_testsuite/
H A Dlinking-errors.wast7 (table (export "t funcref") 0 funcref)
35 (module (import "m" "t funcref" (table 1 funcref)))
39 (module (import "m" "t externref" (table 0 funcref)))
40 "expected table of type `funcref`, found table of type `externref`")
H A Delem_drop.wast5 (table 1 1 funcref)
6 (elem (i32.const 0) funcref (ref.func 0))
H A Dpartial-init-table-segment.wast4 …(table (export "table") funcref (elem $zero $zero $zero $zero $zero $zero $zero $zero $zero $zero))
17 (table (import "m" "table") 10 funcref)
H A Dtable_copy_on_imported_tables.wast9 (table $t (export "t") funcref (elem $f $g $h $f $g $h)))
14 (table $t (import "m" "t") 6 funcref)
20 (table $u (export "u") funcref (elem $i $j $k $i $j $k))
117 (table $t (import "m" "t") 6 funcref)
118 (table $u (import "n" "u") 6 funcref)
/wasmtime-44.0.1/tests/disas/winch/x64/select/
H A Dtyped.wat5 (func (export "typed-select") (param funcref funcref i32) (result funcref)
6 (select (result funcref) (local.get 0) (local.get 1) (local.get 2))
/wasmtime-44.0.1/tests/misc_testsuite/memory64/
H A Dtables-without-bulk-memory.wast6 (table (export "table") i64 1 funcref)
10 (import "A" "table" (table $t i64 1 funcref))
H A Dtable-too-big.wast6 (module (table i64 0x2000_0000_0000_0000 funcref))
10 (table i64 0 funcref)
/wasmtime-44.0.1/tests/disas/winch/x64/table/
H A Dget.wat4 (table $t3 3 funcref)
7 (func $f3 (export "get-funcref") (param $i i32) (result funcref)
H A Dset.wat6 (table $t3 2 funcref)
10 (func (export "set-funcref") (param $i i32) (param $r funcref)
13 (func (export "set-funcref-from") (param $i i32) (param $j i32)
H A Dgrow.wat5 (table $t1 0 funcref)
7 (func (export "grow-by-10") (param $r funcref) (result i32)
H A Dfill.wat9 ;; Define two tables of funcref
10 (table $t1 3 funcref)
11 (table $t2 10 funcref)
18 (local $ref funcref)
/wasmtime-44.0.1/tests/disas/
H A Dref-func-0.wat5 (func $local (result externref externref funcref funcref)
13 (global (export "funcref-imported") funcref (ref.func $imported))
14 (global (export "funcref-local") funcref (ref.func $local)))
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dfunc.hh639 val.of.funcref = (*func).func;
641 wasmtime_funcref_set_null(&val.of.funcref);
649 inline std::optional<Func> Val::funcref() const { in funcref() function in wasmtime::Val
653 if (val.of.funcref.store_id == 0) { in funcref()
656 return Func(val.of.funcref); in funcref()
669 p->funcref = wasmtime_func_to_raw(cx.capi(), &func->capi()); in store()
671 p->funcref = 0; in store()
676 if (p->funcref == 0) { in load()
680 wasmtime_func_from_raw(cx.capi(), p->funcref, &ret); in load()
/wasmtime-44.0.1/tests/misc_testsuite/tail-call/
H A Dloop-across-modules.wast14 (table (export "table") 1 1 funcref)
31 (import "A" "table" (table $table 1 1 funcref))
/wasmtime-44.0.1/crates/c-api/src/
H A Dval.rs152 pub funcref: wasmtime_func_t,
274 funcref: func.into(), in from_val_unscoped()
321 crate::WASMTIME_FUNCREF => Val::FuncRef(self.of.funcref.as_wasmtime()), in to_val_unscoped()
356 funcref: src.of.funcref, in wasmtime_val_clone()

12345