Home
last modified time | relevance | path

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

/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dgc.hh17 class ArrayRef;
333 friend class ArrayRef;
351 class ArrayRef { class
363 ArrayRef(const ArrayRef &other) { wasmtime_arrayref_clone(&other.val, &val); } in ArrayRef() function in wasmtime::ArrayRef
366 ArrayRef &operator=(const ArrayRef &other) { in operator =()
373 ArrayRef(ArrayRef &&other) { in ArrayRef() function in wasmtime::ArrayRef
379 ArrayRef &operator=(ArrayRef &&other) { in operator =()
396 return Result<ArrayRef>(Error(err)); in create()
397 return Result<ArrayRef>(ArrayRef(out)); in create()
445 return ArrayRef(out); in as_array()
[all …]
H A Dval.hh18 class ArrayRef;
205 inline std::optional<ArrayRef> as_array(Store::Context cx) const;
240 friend class ArrayRef;
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/disabled/
H A Deqref.rs2 ArrayRef, AsContext, GcRefImpl, HeapType, I31, OwnedRooted, Result, Rooted, StructRef,
24 impl From<Rooted<ArrayRef>> for Rooted<EqRef> {
26 fn from(s: Rooted<ArrayRef>) -> Self { in from()
31 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<EqRef> {
33 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
97 pub fn as_array(&self, _store: impl AsContext) -> Result<Option<ArrayRef>> { in as_array() argument
101 pub(crate) fn _as_array(&self, _store: &StoreOpaque) -> Result<Option<ArrayRef>> { in _as_array() argument
105 pub fn unwrap_array(&self, _store: impl AsContext) -> Result<ArrayRef> { in unwrap_array() argument
H A Danyref.rs3 ArrayRef, AsContext, AsContextMut, EqRef, GcRefImpl, HeapType, I31, OwnedRooted, Result,
40 impl From<Rooted<ArrayRef>> for Rooted<AnyRef> {
42 fn from(s: Rooted<ArrayRef>) -> Self { in from()
47 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<AnyRef> {
49 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
150 pub fn as_array(&self, _store: impl AsContext) -> Result<Option<ArrayRef>> { in as_array() argument
154 pub(crate) fn _as_array(&self, _store: &StoreOpaque) -> Result<Option<ArrayRef>> { in _as_array() argument
158 pub fn unwrap_array(&self, _store: impl AsContext) -> Result<ArrayRef> { in unwrap_array() argument
H A Darrayref.rs12 pub enum ArrayRef {} enum
14 impl GcRefImpl for ArrayRef {} implementation
16 impl ArrayRef { impl
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/
H A Darrayref.rs183 pub struct ArrayRef { struct
187 unsafe impl GcRefImpl for ArrayRef { argument
204 impl Rooted<ArrayRef> {
218 impl OwnedRooted<ArrayRef> {
263 impl ArrayRef { impl
301 ) -> Result<Rooted<ArrayRef>> { in new() argument
354 ) -> Result<Rooted<ArrayRef>> { in new_async() argument
374 ) -> Result<Rooted<ArrayRef>> { in _new_async() argument
389 ) -> Result<Rooted<ArrayRef>> { in new_from_iter() argument
470 ) -> Result<Rooted<ArrayRef>> { in new_fixed() argument
[all …]
H A Deqref.rs4 AnyRef, ArrayRef, ArrayType, AsContext, AsContextMut, GcRefImpl, GcRootIndex, HeapType, I31,
109 impl From<Rooted<ArrayRef>> for Rooted<EqRef> {
111 fn from(s: Rooted<ArrayRef>) -> Self { in from()
116 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<EqRef> {
118 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
209 if header.kind().matches(VMGcKind::ArrayRef) { in _ty()
422 .matches(VMGcKind::ArrayRef)) in _is_array()
438 pub fn as_array(&self, store: impl AsContext) -> Result<Option<Rooted<ArrayRef>>> { in as_array() argument
442 pub(crate) fn _as_array(&self, store: &StoreOpaque) -> Result<Option<Rooted<ArrayRef>>> { in _as_array() argument
461 pub fn unwrap_array(&self, store: impl AsContext) -> Result<Rooted<ArrayRef>> { in unwrap_array() argument
[all …]
H A Danyref.rs7 ArrayRef, ArrayType, AsContext, AsContextMut, EqRef, GcRefImpl, GcRootIndex, HeapType, I31,
127 impl From<Rooted<ArrayRef>> for Rooted<AnyRef> {
129 fn from(s: Rooted<ArrayRef>) -> Self { in from()
134 impl From<OwnedRooted<ArrayRef>> for OwnedRooted<AnyRef> {
136 fn from(s: OwnedRooted<ArrayRef>) -> Self { in from()
378 if header.kind().matches(VMGcKind::ArrayRef) { in _ty()
636 .matches(VMGcKind::ArrayRef)) in _is_array()
652 pub fn as_array(&self, store: impl AsContext) -> Result<Option<Rooted<ArrayRef>>> { in as_array() argument
656 pub(crate) fn _as_array(&self, store: &StoreOpaque) -> Result<Option<Rooted<ArrayRef>>> { in _as_array() argument
675 pub fn unwrap_array(&self, store: impl AsContext) -> Result<Rooted<ArrayRef>> { in unwrap_array() argument
[all …]
/wasmtime-44.0.1/tests/all/
H A Darrays.rs12 let array = ArrayRef::new(&mut store, &pre, &Val::I32(0), 0)?; in array_new_empty()
93 let array = ArrayRef::new_fixed(&mut store, &pre, &[])?; in array_new_fixed_empty()
106 let array = ArrayRef::new_fixed( in array_new_fixed_with_elems()
179 let a0 = ArrayRef::new_fixed(&mut store, &pre, &[])?; in anyref_as_array()
219 let array = ArrayRef::new_fixed( in array_len_non_empty()
239 let array = ArrayRef::new_fixed( in array_get_in_bounds()
262 let array = ArrayRef::new_fixed( in array_get_out_of_bounds()
418 let array = ArrayRef::new_fixed( in array_set_immutable_elems()
499 let array = ArrayRef::new_fixed( in array_elems_non_empty()
607 |mut caller: Caller<()>, a: Rooted<ArrayRef>| -> Result<Rooted<ArrayRef>> { in passing_arrays_through_wasm_with_typed_calls()
[all …]
H A Dmissing_async.rs222 assert!(ArrayRef::new(&mut store, &pre, &Val::I32(0), 10).is_err()); in async_disallows_array_ref_new()
223 ArrayRef::new_async(&mut store, &pre, &Val::I32(0), 10).await?; in async_disallows_array_ref_new()
235 assert!(ArrayRef::new_fixed(&mut store, &pre, &[Val::I32(0)]).is_err()); in async_disallows_array_ref_new_fixed()
236 ArrayRef::new_fixed_async(&mut store, &pre, &[Val::I32(0)]).await?; in async_disallows_array_ref_new_fixed()
H A Dgc.rs995 let a = ArrayRef::new(&mut store, &pre, &Val::I32(0), 0)?.to_anyref(); in ref_matches()
1252 let arr = ArrayRef::new_fixed(store, pre, &[left.into(), right.into()])?; in drc_transitive_drop_nested_arrays_tree()
1305 let _poison = ArrayRef::new(&mut store, &array_i8_pre, &Val::I32(-1), len); in drc_traces_the_correct_number_of_gc_refs_in_arrays()
H A Dasync_functions.rs1100 let arrayref = ArrayRef::new_fixed_async(&mut cx, &array_pre, &[]).await?; in async_gc_with_func_new_and_func_wrap()
1125 results[2] = ArrayRef::new_fixed_async(&mut cx, &array_pre, &[]) in async_gc_with_func_new_and_func_wrap()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dgc.cc164 TEST(ArrayRef, CreateAndReadElements) { in TEST() argument
176 auto result = ArrayRef::create(cx, pre, Val(int32_t(7)), 5); in TEST()
178 ArrayRef arr = result.ok(); in TEST()
201 TEST(ArrayRef, UpcastAndDowncast) { in TEST() argument
211 auto result = ArrayRef::create(cx, pre, Val(int32_t(99)), 3); in TEST()
213 ArrayRef arr = result.ok(); in TEST()
222 ArrayRef arr2 = eq.as_array(cx); in TEST()
296 auto result = ArrayRef::create(cx, pre, Val(int32_t(55)), 2); in TEST()
298 ArrayRef arr = result.ok(); in TEST()
309 ArrayRef arr2 = *opt_arr2; in TEST()
/wasmtime-44.0.1/crates/environ/src/
H A Dgc.rs473 ArrayRef = 0b101010 << 26, enumerator
537 _ if x == Self::ArrayRef.as_u32() => Some(Self::ArrayRef), in try_from_u32()
552 let all = [ExternRef, AnyRef, EqRef, ArrayRef, StructRef, ExnRef]; in kind_matches()
556 (AnyRef, vec![EqRef, ArrayRef, StructRef]), in kind_matches()
558 (EqRef, vec![ArrayRef, StructRef]), in kind_matches()
559 (ArrayRef, vec![]), in kind_matches()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dvalues.rs3 AnyRef, ArrayRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, HeapType, RefType, Rooted,
628 impl From<Rooted<ArrayRef>> for Val {
630 fn from(val: Rooted<ArrayRef>) -> Val { in from()
635 impl From<Option<Rooted<ArrayRef>>> for Val {
637 fn from(val: Option<Rooted<ArrayRef>>) -> Val { in from()
834 impl From<Rooted<ArrayRef>> for Ref {
836 fn from(e: Rooted<ArrayRef>) -> Ref { in from()
841 impl From<Option<Rooted<ArrayRef>>> for Ref {
843 fn from(e: Option<Rooted<ArrayRef>>) -> Ref { in from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dconst_expr.rs8 AnyRef, ArrayRef, ArrayRefPre, ArrayType, ExternRef, I31, StructRef, StructRefPre, StructType,
343 let array = ArrayRef::_new_async( in eval_loop()
368 let array = ArrayRef::_new_async( in eval_loop()
406 let array = ArrayRef::_new_fixed_async( in eval_loop()
H A Dlibcalls.rs975 ArrayRef, ArrayRefPre, ArrayType, Func, OpaqueRootScope, RootedGcRefImpl, Val, in array_new_elem()
1038 ArrayRef::_new_fixed_async(&mut store, limiter.as_mut(), &pre, &vals, asyncness) in array_new_elem()
1060 ArrayRef, Func, OpaqueRootScope, Val, in array_init_elem()
1083 ArrayRef::from_cloned_gc_ref(&mut no_gc, array) in array_init_elem()
1160 use crate::{ArrayRef, OpaqueRootScope, store::AutoAssertNoGc}; in array_copy()
1172 let dst_array = ArrayRef::from_cloned_gc_ref(&mut store, dst_array); in array_copy()
1175 let src_array = ArrayRef::from_cloned_gc_ref(&mut store, src_array); in array_copy()
/wasmtime-44.0.1/crates/c-api/src/
H A Dref.rs5 AnyRef, ArrayRef, ArrayRefPre, ArrayType, EqRef, ExnRef, ExternRef, FieldType, I31, Mutability,
285 ref_wrapper!(ArrayRef => wasmtime_arrayref_t);
799 match ArrayRef::new(&mut scope, &pre.pre, &val, len) { in wasmtime_arrayref_new()
808 crate::initialize(out, None::<OwnedRooted<ArrayRef>>.into()); in wasmtime_arrayref_new()
937 crate::initialize(out, None::<OwnedRooted<ArrayRef>>.into()); in wasmtime_eqref_as_array()
1027 crate::initialize(out, None::<OwnedRooted<ArrayRef>>.into()); in wasmtime_anyref_as_array()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/
H A Dnull.rs67 header.kind() == VMGcKind::ArrayRef in is()
311 VMGcHeader::from_kind_and_index(VMGcKind::ArrayRef, ty), in alloc_uninit_array()
H A Darrayref.rs46 header.kind().matches(VMGcKind::ArrayRef) in is_arrayref()
H A Ddrc.rs745 header.kind() == VMGcKind::ArrayRef in is()
996 VMGcHeader::from_kind_and_index(VMGcKind::ArrayRef, ty), in alloc_uninit_array()
/wasmtime-44.0.1/crates/wast/src/
H A Dcore.rs173 (Val::AnyRef(Some(x)), CoreConst::ArrayRef) => { in match_val()
/wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/enabled/
H A Dnull.rs213 VMGcKind::ArrayRef, in alloc_array()
H A Ddrc.rs412 VMGcKind::ArrayRef, in alloc_array()
/wasmtime-44.0.1/crates/cranelift/src/func_environ/gc/
H A Denabled.rs1033 emit_gc_kind_assert(func_env, builder, array_ref, VMGcKind::ArrayRef); in translate_array_get()
1056 emit_gc_kind_assert(func_env, builder, array_ref, VMGcKind::ArrayRef); in translate_array_set()
1236 WasmHeapType::Array => check_header_kind(func_env, builder, val, VMGcKind::ArrayRef), in translate_ref_test()