Lines Matching refs:scope
123 let mut scope = RootScope::new(&mut store); in wasmtime_table_new() localVariable
125 init.to_val(&mut scope) in wasmtime_table_new()
128 .and_then(|init| Table::new(scope, tt.ty().ty.clone(), init)), in wasmtime_table_new()
148 let mut scope = RootScope::new(store); in wasmtime_table_get() localVariable
149 match table.get(&mut scope, index) { in wasmtime_table_get()
151 crate::initialize(ret, wasmtime_val_t::from_val(&mut scope, r.into())); in wasmtime_table_get()
165 let mut scope = RootScope::new(&mut store); in wasmtime_table_set() localVariable
167 val.to_val(&mut scope) in wasmtime_table_set()
170 .and_then(|val| table.set(scope, index, val)), in wasmtime_table_set()
188 let mut scope = RootScope::new(&mut store); in wasmtime_table_grow() localVariable
190 val.to_val(&mut scope) in wasmtime_table_grow()
193 .and_then(|val| table.grow(scope, delta, val)), in wasmtime_table_grow()