Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/wasmtime-44.0.1/tests/misc_testsuite/winch/
H A Dref-types-basic.wast10 (table $t 10 funcref)
42 ;; table.get / table.set
44 (table.get $t (local.get $i))
59 ;; table.grow
64 (table.size $t)
83 ;; ref.func -> table.set -> call_indirect
86 ;; table.get
90 (assert_trap (invoke "table-get" (i32.const 10)) "out of bounds table access")
92 ;; table.set
97 (assert_trap (invoke "table-set-null" (i32.const 10)) "out of bounds table access")
[all …]
H A Dtable_set.wast4 (table $t3 2 funcref)
5 (elem (table $t3) (i32.const 1) func $dummy)
9 (table.get $t3 (local.get $i))
13 (table.set $t3 (local.get $i) (local.get $r))
16 (table.set $t3 (local.get $i) (table.get $t3 (local.get $j)))
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")
28 (assert_trap (invoke "set-funcref-from" (i32.const 3) (i32.const 1)) "out of bounds table access")
29 (assert_trap (invoke "set-funcref-from" (i32.const -1) (i32.const 1)) "out of bounds table access")
/wasmtime-44.0.1/crates/c-api/src/
H A Dtable.rs58 let table = t.table(); in wasm_table_type() localVariable
68 let table = t.table(); in wasm_table_get() localVariable
79 let table = t.table(); in wasm_table_set() localVariable
81 table in wasm_table_set()
88 let table = t.table(); in wasm_table_size() localVariable
99 let table = t.table(); in wasm_table_grow() localVariable
101 table in wasm_table_grow()
129 |table| *out = table, in wasmtime_table_new()
136 table: &Table, in wasmtime_table_type()
144 table: &Table, in wasmtime_table_get()
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/function-references/
H A Dtable_get.wast5 (table $t2 2 externref)
6 (table $t3 3 funcref)
13 (table.set $t3 (i32.const 2) (table.get $t3 (i32.const 1)))
17 (table.get $t2 (local.get $i))
55 (table $t 10 externref)
57 (table.get $t)
64 (table $t 10 externref)
74 (table $t 10 externref)
83 (table $t 10 externref)
93 (table $t1 1 funcref)
[all …]
H A Dtable_set.wast5 (table $t2 1 externref)
6 (table $t3 2 funcref)
7 (table $t4 1 (ref null $res-i32))
28 (table.set $t3 (local.get $i) (table.get $t3 (local.get $j)))
79 (table $t 10 externref)
81 (table.set $t)
88 (table $t 10 externref)
97 (table $t 10 externref)
106 (table $t 10 externref)
115 (table $t 10 funcref)
[all …]
H A Dtable_grow.wast5 (table $t 0 externref)
43 (table $t 0x10 funcref)
54 (table $t 0 externref)
81 (table $t 0 10 externref)
98 (table $t 10 funcref)
128 (table $t 0 externref)
130 (table.grow $t)
137 (table $t 0 externref)
146 (table $t 0 externref)
155 (table $t 0 externref)
[all …]
H A Dtable_fill.wast4 (table $t 10 externref)
11 (table.get $t (local.get $i))
74 (table $t 10 externref)
76 (table.fill $t)
83 (table $t 10 externref)
92 (table $t 10 externref)
110 (table $t 0 externref)
119 (table $t 0 funcref)
138 (table $t 0 externref)
149 (table $t2 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))
35 (table.get $tab2 (i32.const 0))
53 (import "I1" "tab" (table $tab1 10 funcref))
54 (import "I1" "tab" (table $tab2 10 funcref))
67 (table.get $tab2 (i32.const 0))
84 (table $tab 10 funcref (ref.null func))
89 (export "tab1" (table $tab))
90 (export "tab2" (table $tab))
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/gc/
H A Di31ref-tables.wast5 (table $table 3 10 i31ref)
6 (elem (table $table) (i32.const 0) i31ref (item (ref.i31 (i32.const 999)))
11 table.size $table
15 (i31.get_u (table.get $table (local.get 0)))
19 (table.grow $table (ref.i31 (local.get 1)) (local.get 0))
23 (table.fill $table (local.get 0) (ref.i31 (local.get 1)) (local.get 2))
27 (table.copy $table $table (local.get 0) (local.get 1) (local.get 2))
34 (table.init $table $elem (local.get 0) (local.get 1) (local.get 2))
50 ;; Fill table[2..4] = 111.
55 ;; Copy from table[0..2] to table[3..5].
[all …]
H A Danyref_that_is_i31_barriers.wast8 (table $table 1 1 anyref)
12 table.get $table
18 table.set $table
34 (table $table 1 1 (ref any) (ref.i31 (i32.const 0)))
38 table.get $table
44 table.set $table
/wasmtime-44.0.1/crates/wasi-http/src/p2/
H A Dtypes_impl.rs40 .table in new()
63 self.table in drop()
153 .table in entries()
229 self.table in new()
248 .table in body()
425 .table in drop()
433 .table in status()
453 .table in consume()
471 .table in drop()
755 .table in first_byte_timeout()
[all …]
/wasmtime-44.0.1/crates/wasi-http/src/p3/host/
H A Dtypes.rs26 table in get_fields()
35 table in get_fields_mut()
68 table in get_request_mut()
84 table in get_response_mut()
93 table in get_request_options()
102 table in get_request_options_mut()
112 table in push_request_options()
121 table in delete_request_options()
368 .table in consume_body()
377 .table in drop()
[all …]
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dtable.hh33 wasmtime_table_t table; member in wasmtime::Table
37 Table(wasmtime_table_t table) : table(table) {} in Table() argument
50 wasmtime_table_t table; in create() local
51 auto *error = wasmtime_table_new(cx.ptr, ty.ptr.get(), &init.val, &table); in create()
55 return Table(table); in create()
60 return wasmtime_table_type(cx.ptr, &table); in type()
65 return wasmtime_table_size(cx.ptr, &table); in size()
73 if (wasmtime_table_get(cx.ptr, &table, idx, &val.val)) { in get()
84 auto *error = wasmtime_table_set(cx.ptr, &table, idx, &val.val); in set()
102 auto *error = wasmtime_table_grow(cx.ptr, &table, delta, &init.val, &prev); in grow()
[all …]
/wasmtime-44.0.1/crates/wasi/src/p3/sockets/host/types/
H A Dudp.rs13 table: &'a ResourceTable, in get_socket()
16 table in get_socket()
23 table: &'a mut ResourceTable, in get_socket_mut()
26 table in get_socket_mut()
100 self.table in create()
113 let sock = get_socket(self.table, &socket)?; in get_local_address()
118 let sock = get_socket(self.table, &socket)?; in get_remote_address()
126 let sock = get_socket(self.table, &socket)?; in get_address_family()
131 let sock = get_socket(self.table, &socket)?; in get_unicast_hop_limit()
140 let sock = get_socket(self.table, &socket)?; in set_unicast_hop_limit()
[all …]
H A Dtcp.rs27 table: &'a ResourceTable, in get_socket()
30 table in get_socket()
37 table: &'a mut ResourceTable, in get_socket_mut()
40 table in get_socket_mut()
85 let socket = table in poll_produce()
366 .table in create()
374 let sock = get_socket(self.table, &socket)?; in get_local_address()
379 let sock = get_socket(self.table, &socket)?; in get_remote_address()
384 let sock = get_socket(self.table, &socket)?; in get_is_listening()
392 let sock = get_socket(self.table, &socket)?; in get_address_family()
[all …]
/wasmtime-44.0.1/crates/wasi/src/p2/host/
H A Dtcp.rs23 let network = self.table.get(&network)?; in start_bind()
117 let socket = self.table.get(&this)?; in local_address()
122 let socket = self.table.get(&this)?; in remote_address()
127 let socket = self.table.get(&this)?; in is_listening()
136 let socket = self.table.get(&this)?; in address_family()
151 let socket = self.table.get(&this)?; in keep_alive_enabled()
160 let socket = self.table.get(&this)?; in set_keep_alive_enabled()
166 let socket = self.table.get(&this)?; in keep_alive_idle_time()
181 let socket = self.table.get(&this)?; in keep_alive_interval()
190 let socket = self.table.get(&this)?; in set_keep_alive_interval()
[all …]
/wasmtime-44.0.1/tests/all/
H A Dpulley_provenance_test.wat8 (table 1 funcref)
70 (table $t 1 funcref)
71 (func (export "table-intrinsics")
72 (drop (table.get $t (i32.const 0)))
73 (table.set $t (i32.const 0) (table.get $t (i32.const 0)))
77 (drop (table.get $t (i32.const 1)))
78 (table.set $t (i32.const 1) (table.get $t (i32.const 1)))
87 (table $t2 2 funcref)
89 (func (export "table-intrinsics2")
90 (drop (table.get $t2 (i32.const 1)))
[all …]
H A Dtable.rs8 match table.get(&mut store, 0) { in get_none()
12 assert!(table.get(&mut store, 1).is_none()); in get_none()
21 table in fill_wrong()
31 table in fill_wrong()
75 Instance::new(&mut store, &module, &[table.into()])?; in null_elem_segment_works_with_imported_table()
224 assert_eq!(table.size(&store), 10); in i31ref_table_grow()
230 table.grow(&mut store, 10, grow_val.into())?; in i31ref_table_grow()
244 assert!(table.get(&mut store, 20).is_none()); in i31ref_table_grow()
266 table.fill(&mut store, dst, fill_val.into(), len)?; in i31ref_table_fill()
269 let actual = table.get(&mut store, i).unwrap(); in i31ref_table_fill()
[all …]
/wasmtime-44.0.1/crates/wasi/src/
H A Dview.rs48 pub table: &'a mut ResourceTable, field
53 let WasiCtxView { ctx, table } = self.ctx(); in cli()
56 table, in cli()
63 let WasiCtxView { ctx, table } = self.ctx(); in clocks()
66 table, in clocks()
73 let WasiCtxView { ctx, table } = self.ctx(); in filesystem()
76 table, in filesystem()
89 let WasiCtxView { ctx, table } = self.ctx(); in sockets()
92 table, in sockets()
/wasmtime-44.0.1/cranelift/codegen/meta/src/
H A Dunique_table.rs8 table: Vec<&'entries T>, field
15 table: Vec::new(), in new()
23 let i = self.table.len(); in add()
24 self.table.push(entry); in add()
33 self.table.len() in len()
36 self.table.iter() in iter()
42 table: Vec<T>, field
47 Self { table: Vec::new() } in new()
72 self.table in add()
78 self.table.len() in len()
[all …]
/wasmtime-44.0.1/crates/wasi-tls/src/p2/
H A Dhost.rs31 let input = self.table.delete(input)?; in new()
32 let output = self.table.delete(output)?; in new()
38 Ok(self.table.push(HostClientHandshake { in new()
48 let handshake = self.table.delete(this)?; in finish()
68 Ok(self.table.push(future)?) in finish()
72 self.table.delete(this)?; in drop()
94 wasmtime_wasi::p2::subscribe(self.table, this) in subscribe()
115 let future = self.table.get_mut(&this)?; in get()
138 self.table.delete(this)?; in drop()
150 self.table.get_mut(&this)?.0.close() in close_output()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dresource_table.rs447 let x = table.push(()).unwrap(); in test_free_list()
450 let y = table.push(()).unwrap(); in test_free_list()
455 let x = table.push(()).unwrap(); in test_free_list()
462 let y = table.push(()).unwrap(); in test_free_list()
478 table.set_max_capacity(0); in test_max_capacity()
482 table.set_max_capacity(1); in test_max_capacity()
487 table.set_max_capacity(0); in test_max_capacity()
489 table.delete(x).unwrap(); in test_max_capacity()
491 table.delete(x).unwrap(); in test_max_capacity()
493 table.set_max_capacity(10); in test_max_capacity()
[all …]
/wasmtime-44.0.1/crates/wasi-io/src/
H A Dlib.rs78 fn table(&mut self) -> &mut ResourceTable; in table() method
82 fn table(&mut self) -> &mut ResourceTable { in table() method
83 T::table(self) in table()
87 fn table(&mut self) -> &mut ResourceTable { in table() method
88 T::table(self) in table()
147 crate::bindings::wasi::io::error::add_to_linker::<T, WasiIo>(l, T::table)?; in add_to_linker_async()
148 crate::bindings::wasi::io::poll::add_to_linker::<T, WasiIo>(l, T::table)?; in add_to_linker_async()
149 crate::bindings::wasi::io::streams::add_to_linker::<T, WasiIo>(l, T::table)?; in add_to_linker_async()
/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dtable.rs35 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_grow() localVariable
51 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_set() localVariable
52 table.set(&mut store, 0, Ref::Func(None))?; in table_set()
67 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_copy() localVariable
68 Table::copy(&mut store, &table, 0, &table, 2, 2)?; in table_copy()
83 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_fill() localVariable
84 table.fill(&mut store, 0, Ref::Func(None), 4)?; in table_fill()
99 let table = Table::new(&mut store, ty, Ref::Func(None))?; in table_get() localVariable
100 let val = table.get(&mut store, 0); in table_get()
117 let _ty = table.ty(&store); in table_ty()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/
H A Dtable_pool.rs33 crate::runtime::vm::table::NOMINAL_MAX_TABLE_ELEM_SIZE in new()
86 table.limits.min, in validate()
159 let table = unsafe { in allocate() localVariable
169 return Ok((allocation_index, table)); in allocate()
202 table: Table, in deallocate()
205 assert!(table.is_static()); in deallocate()
206 drop(table); in deallocate()
228 table: &mut Table, in reset_table_pages_to_zero()
231 assert!(table.is_static()); in reset_table_pages_to_zero()
233 let table_byte_size = table.size() * table.element_type().element_size(); in reset_table_pages_to_zero()
[all …]

12345678910>>...13