Home
last modified time | relevance | path

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

12

/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/enabled/
H A Dexnref.rs112 pub struct ExnRef { struct
116 unsafe impl GcRefImpl for ExnRef { implementation
133 impl ExnRef { implementation
210 ) -> Result<Rooted<ExnRef>> { in new() argument
255 ) -> Result<Rooted<ExnRef>> { in new_async() argument
275 ) -> Result<Rooted<ExnRef>> { in _new_async() argument
328 ) -> Result<Rooted<ExnRef>> { in new_unchecked() argument
519 exnref: &'a ExnRef, in _fields()
633 unsafe impl WasmTy for Rooted<ExnRef> {
705 <Rooted<ExnRef>>::wasm_ty_option_load(store, ptr.get_anyref(), ExnRef::from_cloned_gc_ref) in load()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dvalues.rs59 ExnRef(Option<Rooted<ExnRef>>), enumerator
238 | (Val::ExnRef(_), _) in _matches_ty()
533 Val::ExnRef(None) => true, in comes_from_same_store()
581 Ref::Exn(e) => Val::ExnRef(e), in from()
642 impl From<Rooted<ExnRef>> for Val {
644 fn from(val: Rooted<ExnRef>) -> Val { in from()
645 Val::ExnRef(Some(val)) in from()
652 Val::ExnRef(val) in from()
775 Exn(Option<Rooted<ExnRef>>),
848 impl From<Rooted<ExnRef>> for Ref {
[all …]
H A Ddebug.rs9 AnyRef, AsContextMut, CodeMemory, ExnRef, Extern, ExternRef, Func, Instance, Module,
806 FrameValType::ExnRef => { in read_value()
809 let value = ExnRef::_from_raw(&mut nogc, value); in read_value()
810 Val::ExnRef(value) in read_value()
844 FrameValType::AnyRef | FrameValType::ExnRef | FrameValType::ExternRef => { in gc_refs_in_frame()
873 CaughtExceptionThrown(OwnedRooted<ExnRef>),
875 UncaughtExceptionThrown(OwnedRooted<ExnRef>),
H A Dstore.rs105 use crate::{ExnRef, Rooted};
1213 pub fn throw<R>(&mut self, exception: Rooted<ExnRef>) -> Result<R, ThrownException> { in throw()
1235 pub fn take_pending_exception(&mut self) -> Option<Rooted<ExnRef>> { in take_pending_exception() argument
1439 pub fn throw<R>(&mut self, exception: Rooted<ExnRef>) -> Result<R, ThrownException> { in throw()
1449 pub fn take_pending_exception(&mut self) -> Option<Rooted<ExnRef>> { in take_pending_exception() argument
2682 fn take_pending_exception_rooted(&mut self) -> Option<Rooted<ExnRef>> { in take_pending_exception_rooted() argument
2693 ) -> Result<Option<OwnedRooted<ExnRef>>, crate::error::OutOfMemory> { in pending_exception_owned_rooted() argument
2706 fn throw_impl(&mut self, exception: Rooted<ExnRef>) { in throw_impl() argument
/wasmtime-44.0.1/crates/fuzzing/src/generators/
H A Dvalue.rs20 ExnRef { null: bool }, enumerator
35 DiffValue::ExnRef { .. } => DiffValueType::ExnRef, in ty()
193 ExnRef => DiffValue::ExnRef { null: true }, in arbitrary_of_type()
241 DiffValue::ExnRef { null } => null.hash(state), in hash()
279 (Self::ExnRef { null: a }, Self::ExnRef { null: b }) => a == b, in eq()
298 ExnRef, enumerator
318 (true, HeapType::Exn) => Ok(Self::ExnRef), in try_from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/gc/disabled/
H A Dexnref.rs15 pub enum ExnRef {} enum
17 impl GcRefImpl for ExnRef {} implementation
19 impl ExnRef { impl
/wasmtime-44.0.1/crates/c-api/src/
H A Dexn.rs5 use wasmtime::{AsContextMut, ExnRef, ExnRefPre, ExnType, RootScope, Tag};
9 exn: wasmtime::OwnedRooted<ExnRef>,
31 ExnRef::new(&mut scope, &allocator, tag, &field_vals) in wasmtime_exn_new()
H A Dval.rs99 Val::ExnRef(_) => crate::abort("creating a wasm_val_t from an exnref"), in from_val()
277 Val::ExnRef(e) => wasmtime_val_t { in from_val_unscoped()
323 Val::ExnRef(self.of.exnref.as_wasmtime().map(|e| e.to_rooted(cx))) in to_val_unscoped()
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Ddiff_wasmtime.rs227 DiffValue::ExnRef { null } => { in from()
229 Val::ExnRef(None) in from()
233 Val::ExnRef(None) in from()
250 Val::ExnRef(e) => DiffValue::ExnRef { null: e.is_none() }, in from()
H A Ddiff_spec.rs109 | DiffValue::ExnRef { .. } in from()
/wasmtime-44.0.1/crates/environ/src/
H A Dgc.rs475 ExnRef = 0b000001 << 26, enumerator
539 _ if x == Self::ExnRef.as_u32() => Some(Self::ExnRef), in try_from_u32()
552 let all = [ExternRef, AnyRef, EqRef, ArrayRef, StructRef, ExnRef]; in kind_matches()
561 (ExnRef, vec![]), in kind_matches()
H A Dframe_table.rs437 ExnRef, enumerator
450 FrameValType::AnyRef | FrameValType::ExternRef | FrameValType::ExnRef => 4, in storage_size()
468 FrameValType::ExnRef => 8, in from()
486 8 => Ok(Self::ExnRef), in try_from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/enabled/
H A Darrayref.rs3 AnyRef, ExnRef, ExternRef, Func, HeapType, RootedGcRefImpl, StorageType, Val, ValType,
169 Val::ExnRef(ExnRef::_from_raw(store, raw)) in read_elem()
255 Val::ExnRef(e) => { in write_elem()
370 Val::ExnRef(x) => { in initialize_elem()
H A Dstructref.rs3 AnyRef, ExnRef, ExternRef, Func, HeapType, RootedGcRefImpl, StorageType, Val, ValType,
215 Val::ExnRef(e) => { in write_field()
314 Val::ExnRef(ExnRef::_from_raw(store, raw)) in read_field_impl()
376 Val::ExnRef(x) => { in initialize_field_impl()
H A Dexnref.rs45 header.kind().matches(VMGcKind::ExnRef) in is_exnref()
/wasmtime-44.0.1/crates/debugger/src/host/
H A Dopaque.rs7 Engine, ExnRef, ExnRefPre, ExnType, FrameHandle, Func, FuncType, Global, Instance, Memory,
99 async fn exnref_get_tag(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Tag>; in exnref_get_tag()
100 async fn exnref_get_fields(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Vec<WasmValue>>; in exnref_get_fields()
102 -> Result<OwnedRooted<ExnRef>>; in exnref_new() argument
452 async fn exnref_get_tag(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Tag> { in exnref_get_tag()
457 async fn exnref_get_fields(&mut self, exn: OwnedRooted<ExnRef>) -> Result<Vec<WasmValue>> { in exnref_get_fields()
475 ) -> Result<OwnedRooted<ExnRef>> { in exnref_new() argument
476 self.with_store(move |mut store| -> Result<OwnedRooted<ExnRef>> { in exnref_new()
484 let exn = ExnRef::new(&mut store, &allocator, &tag, &field_vals) in exnref_new()
H A Dapi.rs10 Engine, ExnRef, FrameHandle, Func, Global, Instance, Memory, Module, OwnedRooted, Result,
47 Val::ExnRef(Some(rooted)) => { in new()
50 Val::ExnRef(None) => WasmValue::Exn(None), in new()
65 WasmValue::Exn(Some(owned)) => Val::ExnRef(Some(owned.to_rooted(store))), in into_val()
66 WasmValue::Exn(None) => Val::ExnRef(None), in into_val()
160 pub struct WasmException(OwnedRooted<ExnRef>);
171 Exn(Option<OwnedRooted<ExnRef>>),
/wasmtime-44.0.1/tests/all/
H A Dexceptions.rs161 let exn = ExnRef::new( in exception_from_host()
195 let exn = ExnRef::new( in exception_across_no_wasm()
236 let exn = ExnRef::new(&mut store, &exnpre, &tag, &[])?; in gc_with_exnref_global()
239 global.set(&mut store, Val::ExnRef(Some(exn)))?; in gc_with_exnref_global()
H A Dexnrefs.rs63 ExnRef::new( in exn_objects()
71 let obj = ExnRef::new( in exn_objects()
/wasmtime-44.0.1/crates/wast/src/
H A Dcore.rs88 Val::FuncRef(None) | Val::ExternRef(None) | Val::AnyRef(None) | Val::ExnRef(None), in match_val()
97 | (Val::ExnRef(None), CoreConst::NullExnRef) in match_val()
117 Val::ExnRef(None), in match_val()
118 CoreConst::ExnRef { in match_val()
119 value: Some(json_from_wast::ExnRef::Null), in match_val()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/types/
H A Dval.hh34 ExnRef, enumerator
47 X(ExnRef, "exnref", WASMTIME_EXNREF) \
/wasmtime-44.0.1/crates/wasmtime/src/runtime/externals/
H A Dglobal.rs4 AnyRef, AsContext, AsContextMut, ExnRef, ExternRef, Func, GlobalType, HeapType, Mutability,
179 ExnRef::from_cloned_gc_ref(store, r) in _get()
275 Val::ExnRef(e) => { in set_unchecked()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/
H A Dglobal.rs65 Val::ExnRef(e) => { in generate_global_export()
/wasmtime-44.0.1/crates/debugger/src/
H A Dlib.rs26 AsContextMut, DebugEvent, DebugHandler, Engine, ExnRef, OwnedRooted, Result, Store,
518 CaughtExceptionThrown(OwnedRooted<ExnRef>),
520 UncaughtExceptionThrown(OwnedRooted<ExnRef>),
/wasmtime-44.0.1/crates/wasmtime/src/runtime/wave/
H A Dcore.rs42 Self::ExnRef(_) => WasmTypeKind::Unsupported, in kind()

12