Lines Matching refs:scope

22     let mut scope = RootScope::new(&mut store);  in wasmtime_exn_new()  localVariable
25 let tag_ty = tag.ty(&scope); in wasmtime_exn_new()
27 let allocator = ExnRefPre::new(&mut scope, exn_type); in wasmtime_exn_new()
30 raw_fields.iter().map(|f| f.to_val(&mut scope)).collect(); in wasmtime_exn_new()
31 ExnRef::new(&mut scope, &allocator, tag, &field_vals) in wasmtime_exn_new()
35 let owned = rooted.to_owned_rooted(&mut scope).unwrap(); in wasmtime_exn_new()
46 let mut scope = RootScope::new(&mut store); in wasmtime_exn_tag() localVariable
47 let rooted = exn.exn.to_rooted(&mut scope); in wasmtime_exn_tag()
48 handle_result(rooted.tag(&mut scope), |tag| { in wasmtime_exn_tag()
58 let mut scope = RootScope::new(&mut store); in wasmtime_exn_field_count() localVariable
59 let rooted = exn.exn.to_rooted(&mut scope); in wasmtime_exn_field_count()
60 let ty = rooted.ty(&scope).unwrap(); in wasmtime_exn_field_count()
71 let mut scope = RootScope::new(&mut store); in wasmtime_exn_field() localVariable
72 let rooted = exn.exn.to_rooted(&mut scope); in wasmtime_exn_field()
73 handle_result(rooted.field(&mut scope, index), |val| { in wasmtime_exn_field()
74 crate::initialize(val_ret, wasmtime_val_t::from_val(&mut scope, val)); in wasmtime_exn_field()
83 let mut scope = RootScope::new(&mut store); in wasmtime_context_set_exception() localVariable
84 let rooted = exn.exn.to_rooted(&mut scope); in wasmtime_context_set_exception()
85 let thrown = scope.as_context_mut().throw::<()>(rooted).unwrap_err(); in wasmtime_context_set_exception()