Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 81) sorted by relevance

1234

/wasmtime-44.0.1/tests/misc_testsuite/gc/
H A Darrays-of-different-types.wast9 (type $a (array i8))
10 (type $b (array i16))
11 (type $c (array i32))
12 (type $d (array i64))
13 (type $e (array f32))
14 (type $f (array f64))
15 (type $g (array v128))
16 (type $h (array funcref))
21 (type $m (array anyref))
22 (type $n (array eqref))
[all …]
H A Darray-types.wast4 (type (array i8))
5 (type (array i16))
6 (type (array i32))
7 (type (array i64))
8 (type (array f32))
9 (type (array f64))
10 (type (array anyref))
12 (type (array (ref 0)))
14 (type (array (mut i8)))
15 (type (array (mut i16)))
[all …]
H A Darray-init-data.wast5 (type $arr (array (mut i8)))
21 (assert_return (invoke "array-init-data" (i32.const 4) (i32.const 0) (i32.const 0) (i32.const 0)) (…
22 (assert_return (invoke "array-init-data" (i32.const 4) (i32.const 0) (i32.const 0) (i32.const 4)) (…
40 ;; Out-of-bounds array accesses.
43 "out of bounds array access")
46 "out of bounds array access")
49 "out of bounds array access")
52 "out of bounds array access")
55 (type $arr (array (mut i8)))
72 (type $arr (array (mut i32)))
[all …]
H A Darray-new-data.wast5 (type $arr (array (mut i8)))
10 (array.new_data $arr $d (local.get 0) (local.get 1))
15 (assert_return (invoke "array-new-data" (i32.const 0) (i32.const 0)) (ref.array))
16 (assert_return (invoke "array-new-data" (i32.const 0) (i32.const 4)) (ref.array))
17 (assert_return (invoke "array-new-data" (i32.const 1) (i32.const 2)) (ref.array))
18 (assert_return (invoke "array-new-data" (i32.const 4) (i32.const 0)) (ref.array))
28 (type $arr (array (mut i8)))
44 (type $arr (array (mut i32)))
49 (array.get $arr
59 (type $arr (array (mut i16)))
[all …]
H A Darray-new-elem.wast5 (type $arr (array i31ref))
13 (func (export "array-new-elem") (param i32 i32) (result (ref $arr))
14 (array.new_elem $arr $e (local.get 0) (local.get 1))
19 (assert_return (invoke "array-new-elem" (i32.const 0) (i32.const 0)) (ref.array))
20 (assert_return (invoke "array-new-elem" (i32.const 0) (i32.const 4)) (ref.array))
21 (assert_return (invoke "array-new-elem" (i32.const 1) (i32.const 2)) (ref.array))
22 (assert_return (invoke "array-new-elem" (i32.const 4) (i32.const 0)) (ref.array))
31 (type $arr (array i31ref))
39 (func (export "array-new-elem-contents") (result i32 i32)
42 (i31.get_u (array.get $arr (local.get 0) (i32.const 0)))
[all …]
H A Dissue-10397.wast6 (type $array (array (mut i32)))
13 (local $local_array (ref $array))
20 (local.set $local_array (array.new $array (i32.const 0) (i32.const 1)))
23 (array.set $array (ref.cast (ref $array) (local.get $local_array))
H A Dissue-10182.wast4 (type (array (mut anyref)))
6 (global (ref 0) (array.new_fixed 0 1 (array.new_fixed 0 0)))
19 array.copy 0 0
H A Darray-new-data-missing-stack-map.wast5 (type $arr (array i8))
11 (array.new_data $arr $d (i32.const 0) (i32.const 5))
14 (drop (array.new $arr (i32.const 0) (i32.const 5)))
16 (array.get_u $arr (i32.const 0))
H A Dissue-10467.wast4 (type $string (array (mut i8)))
7 (local.set $s (array.new_default $string (i32.const 1)))
8 (array.fill $string
13 (if (i32.ne (array.get_u $string (local.get $s) (i32.const 0))
H A Dref-test.wast76 (ref.test i31ref (ref.null array))
97 (type $a (array i32))
114 (ref.test (ref i31) (ref.null array))
127 (type $a (array i32))
154 (ref.test structref (ref.null array))
164 (ref.test arrayref (ref.null array))
166 (ref.test arrayref (ref.null array))
177 (type $a (array i32))
195 (type $a (array i32))
392 (ref.test (ref $s0) (ref.null array))
[all …]
H A Darray-alloc-too-large.wast4 (type $arr_i8 (array i8))
5 (type $arr_i64 (array i64))
9 (array.new_default $arr_i64 (i32.const -1))
14 (array.new_default $arr_i8 (i32.const -1))
H A Darray-new-elem-missing-stack-map.wast6 (type $arr (array (ref null $s)))
13 (array.new_elem $arr $e (i32.const 0) (i32.const 1))
22 (struct.get $s 0 (array.get $arr (i32.const 0)))
/wasmtime-44.0.1/tests/all/
H A Darrays.rs13 assert_eq!(array.len(&store)?, 0); in array_new_empty()
26 assert_eq!(array.len(&store)?, 3); in array_new_with_elems()
94 assert_eq!(array.len(&store)?, 0); in array_new_fixed_empty()
106 let array = ArrayRef::new_fixed( in array_new_fixed_with_elems() localVariable
111 assert_eq!(array.len(&store)?, 3); in array_new_fixed_with_elems()
219 let array = ArrayRef::new_fixed( in array_len_non_empty() localVariable
239 let array = ArrayRef::new_fixed( in array_get_in_bounds() localVariable
262 let array = ArrayRef::new_fixed( in array_get_out_of_bounds() localVariable
284 let array = { in array_get_on_unrooted() localVariable
358 let array = { in array_set_on_unrooted() localVariable
[all …]
/wasmtime-44.0.1/tests/all/component_model/
H A Dstrings.rs435 let array = b"valid string until \xffthen valid again"; in raw_string_encodings() localVariable
436 test_invalid_string_encoding(&engine, "utf8", "utf8", array, array.len() as u32)?; in raw_string_encodings()
437 test_invalid_string_encoding(&engine, "utf8", "utf16", array, array.len() as u32)?; in raw_string_encodings()
438 let array = b"symbol \xce\xa3 until \xffthen valid"; in raw_string_encodings() localVariable
439 test_invalid_string_encoding(&engine, "utf8", "utf8", array, array.len() as u32)?; in raw_string_encodings()
440 test_invalid_string_encoding(&engine, "utf8", "utf16", array, array.len() as u32)?; in raw_string_encodings()
441 test_invalid_string_encoding(&engine, "utf8", "latin1+utf16", array, array.len() as u32)?; in raw_string_encodings()
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp3_random_imports.rs10 let array = random::random::get_random_bytes(100); in run() localVariable
11 assert_eq!(array.len(), 100); in run()
29 let array = random::insecure::get_insecure_random_bytes(100); in run() localVariable
30 assert_eq!(array.len(), 100); in run()
H A Dp2_random.rs19 let array = random::random::get_random_bytes(p2_random_size); in main() localVariable
20 assert_eq!(array.len(), p2_random_size as usize); in main()
44 let array = random::insecure::get_insecure_random_bytes(p2_insecure_random_size); in main() localVariable
45 assert_eq!(array.len(), p2_insecure_random_size as usize); in main()
/wasmtime-44.0.1/ci/
H A Dbuild-build-matrix.js11 const array = [ variable
126 for (let build of array) {
/wasmtime-44.0.1/crates/c-api/tests/component/
H A Dcall_func.cc37 auto params = std::array<Val, 2>{ in TEST()
42 auto results = std::array<Val, 1>{false}; in TEST()
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/byte-array-literals/
H A DREADME.md1 # byte-array-literals
9 represented as an array of u8 literals, these will somehow not end up in the
/wasmtime-44.0.1/tests/disas/gc/null/
H A Dmultiple-array-get.wat6 (type $ty (array (mut i64)))
9 (array.get $ty (local.get 0) (local.get 1))
10 (array.get $ty (local.get 0) (local.get 2))
H A Darray-len.wat6 (type $ty (array (mut i64)))
9 (array.len (local.get 0))
/wasmtime-44.0.1/tests/disas/gc/drc/
H A Dmultiple-array-get.wat6 (type $ty (array (mut i64)))
9 (array.get $ty (local.get 0) (local.get 1))
10 (array.get $ty (local.get 0) (local.get 2))
H A Darray-len.wat6 (type $ty (array (mut i64)))
9 (array.len (local.get 0))
/wasmtime-44.0.1/crates/wasi-nn/wit/
H A Dwasi-nn.wit22 /// The array length matches the tensor rank and each element in the array describes the size of
40 /// and the array length must match the product of all of the dimensions and the number of bytes
41 /// in the type (e.g., a 2x2 tensor with 4-byte f32 elements would have a data array of length
94 /// This gets bundled up into an array of buffers because implementing backends may encode their
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dconst_expr.rs343 let array = ArrayRef::_new_async( in eval_loop() localVariable
353 self.stack.push(Val::AnyRef(Some(array.into()))); in eval_loop()
368 let array = ArrayRef::_new_async( in eval_loop() localVariable
378 self.stack.push(Val::AnyRef(Some(array.into()))); in eval_loop()
406 let array = ArrayRef::_new_fixed_async( in eval_loop() localVariable
415 self.stack.push(Val::AnyRef(Some(array.into()))); in eval_loop()

1234