Home
last modified time | relevance | path

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

12345678910>>...19

/wasmtime-44.0.1/cranelift/isle/veri/veri_ir/src/
H A Dannotation_ir.rs154 And(Box<Expr>, Box<Expr>),
155 Or(Box<Expr>, Box<Expr>),
156 Imp(Box<Expr>, Box<Expr>),
157 Eq(Box<Expr>, Box<Expr>),
158 Lte(Box<Expr>, Box<Expr>),
159 Lt(Box<Expr>, Box<Expr>),
192 BVOr(Box<Expr>, Box<Expr>),
201 BVSubs(Box<Expr>, Box<Expr>, Box<Expr>),
229 Conditional(Box<Expr>, Box<Expr>, Box<Expr>),
234 LoadEffect(Box<Expr>, Box<Expr>, Box<Expr>),
[all …]
H A Dlib.rs174 Binary(BinaryOp, Box<Expr>, Box<Expr>),
177 CLZ(Box<Expr>),
178 CLS(Box<Expr>),
179 Rev(Box<Expr>),
183 BVSubs(Box<Expr>, Box<Expr>, Box<Expr>),
186 Conditional(Box<Expr>, Box<Expr>, Box<Expr>),
206 BVZeroExtToVarWidth(Box<Expr>, Box<Expr>),
210 BVSignExtToVarWidth(Box<Expr>, Box<Expr>),
213 BVConvTo(Box<Expr>, Box<Expr>),
217 LoadEffect(Box<Expr>, Box<Expr>, Box<Expr>),
[all …]
/wasmtime-44.0.1/crates/wasi/src/cli/
H A Dempty.rs16 Box::new(p2::pipe::ClosedInputStream) in p2_stream()
19 Box::new(tokio::io::empty()) in async_stream()
24 Box::new(p2::pipe::SinkOutputStream) in p2_stream()
27 Box::new(tokio::io::empty()) in async_stream()
39 Box::new(p2::pipe::ClosedInputStream) in p2_stream()
42 Box::new(tokio::io::empty()) in async_stream()
47 Box::new(p2::pipe::SinkOutputStream) in p2_stream()
50 Box::new(tokio::io::empty()) in async_stream()
65 Box::new(tokio::io::empty()) in async_stream()
80 Box::new(tokio::io::empty()) in async_stream()
[all …]
H A Dstdout.rs17 fn p2_stream(&self) -> Box<dyn OutputStream> { in p2_stream()
18 Box::new(StdioOutputStream::Stdout) in p2_stream()
21 Box::new(StdioOutputStream::Stdout) in async_stream()
32 fn p2_stream(&self) -> Box<dyn OutputStream> { in p2_stream()
33 Box::new(StdioOutputStream::Stdout) in p2_stream()
36 Box::new(StdioOutputStream::Stdout) in async_stream()
47 fn p2_stream(&self) -> Box<dyn OutputStream> { in p2_stream()
48 Box::new(StdioOutputStream::Stderr) in p2_stream()
51 Box::new(StdioOutputStream::Stderr) in async_stream()
63 Box::new(StdioOutputStream::Stderr) in p2_stream()
[all …]
H A Dmem.rs13 fn p2_stream(&self) -> Box<dyn InputStream> { in p2_stream()
14 Box::new(self.clone()) in p2_stream()
16 fn async_stream(&self) -> Box<dyn AsyncRead + Send + Sync> { in async_stream()
17 Box::new(self.clone()) in async_stream()
28 fn p2_stream(&self) -> Box<dyn OutputStream> { in p2_stream()
29 Box::new(self.clone()) in p2_stream()
31 fn async_stream(&self) -> Box<dyn AsyncWrite + Send + Sync> { in async_stream()
32 Box::new(self.clone()) in async_stream()
/wasmtime-44.0.1/crates/c-api/src/component/
H A Dcomponent.rs34 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_new()
37 *component_out = Box::into_raw(Box::new(wasmtime_component_t { component })); in wasmtime_component_new()
46 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_serialize()
58 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_deserialize()
63 *component_out = Box::into_raw(Box::new(wasmtime_component_t { component })); in wasmtime_component_deserialize()
73 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_deserialize_file()
80 *component_out = Box::into_raw(Box::new(wasmtime_component_t { component })); in wasmtime_component_deserialize_file()
87 ) -> Box<wasmtime_component_type_t> { in wasmtime_component_type()
94 ) -> Box<wasmtime_component_t> { in wasmtime_component_clone()
95 Box::new(component.clone()) in wasmtime_component_clone()
[all …]
H A Dval.rs197 val: Option<Box<wasmtime_component_val_t>>,
224 val: Option<Box<wasmtime_component_val_t>>,
227 impl From<&wasmtime_component_valresult_t> for Result<Option<Box<Val>>, Option<Box<Val>>> {
238 impl From<&Result<Option<Box<Val>>, Option<Box<Val>>>> for wasmtime_component_valresult_t {
239 fn from(value: &Result<Option<Box<Val>>, Option<Box<Val>>>) -> Self { in from()
272 Option(Option<Box<Self>>),
369 ) -> Box<wasmtime_component_val_t> { in wasmtime_component_val_new()
411 ) -> Box<wasmtime_component_resource_any_t> { in wasmtime_component_resource_any_clone()
428 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_resource_any_drop()
512 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_resource_any_to_host()
[all …]
H A Dlinker.rs23 ) -> Box<wasmtime_component_linker_t> { in wasmtime_component_linker_new()
52 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_instantiate()
66 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_instance_add_instance()
74 *linker_instance_out = Box::into_raw(Box::new(wasmtime_component_linker_instance_t { in wasmtime_component_linker_instance_add_instance()
86 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_instance_add_module()
107 ) -> Option<Box<wasmtime_error_t>>;
117 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_instance_add_func()
165 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_add_wasip2()
174 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_add_wasi_http()
183 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_component_linker_define_unknown_imports_as_traps()
[all …]
/wasmtime-44.0.1/crates/wasi/src/
H A Dcli.rs82 pub(crate) stdin: Box<dyn StdinStream>,
83 pub(crate) stdout: Box<dyn StdoutStream>,
84 pub(crate) stderr: Box<dyn StdoutStream>,
93 stdin: Box::new(empty()), in default()
94 stdout: Box::new(empty()), in default()
95 stderr: Box::new(empty()), in default()
130 fn p2_stream(&self) -> Box<dyn InputStream> { in p2_stream()
166 Box::new(p2::pipe::AsyncWriteStream::new( in p2_stream()
180 fn p2_stream(&self) -> Box<dyn InputStream> { in p2_stream()
203 fn p2_stream(&self) -> Box<dyn InputStream> { in p2_stream()
[all …]
/wasmtime-44.0.1/crates/c-api/src/
H A Dmodule.rs37 ) -> Option<Box<wasm_module_t>> { in wasm_module_new()
92 Box::new(wasm_shared_module_t { in wasm_module_share()
101 ) -> Option<Box<wasm_module_t>> { in wasm_module_obtain()
122 ) -> Option<Box<wasm_module_t>> { in wasm_module_deserialize()
143 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_new()
147 *out = Box::into_raw(Box::new(wasmtime_module_t { module })); in wasmtime_module_new()
154 Box::new(module.clone()) in wasmtime_module_clone()
179 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_validate()
189 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_module_serialize()
213 *out = Box::into_raw(Box::new(wasmtime_module_t { module })); in wasmtime_module_deserialize()
[all …]
H A Dinstance.rs29 ) -> Option<Box<wasm_instance_t>> { in wasm_instance_new()
39 Ok(instance) => Some(Box::new(wasm_instance_t::new( in wasm_instance_new()
45 *ptr = Box::into_raw(Box::new(wasm_trap_t::new(e))); in wasm_instance_new()
63 Some(Box::new(wasm_extern_t { in wasm_instance_exports()
80 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_instance_new()
96 ) -> Option<Box<wasmtime_error_t>> { in handle_instantiate()
104 *trap_ptr = Box::into_raw(Box::new(wasm_trap_t::new(e))); in handle_instantiate()
107 Some(Box::new(e.into())) in handle_instantiate()
170 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_instance_pre_instantiate()
178 ) -> Box<wasmtime_module_t> { in wasmtime_instance_pre_module()
[all …]
H A Dsharedmemory.rs15 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_sharedmemory_new()
18 |mem| *ret = Box::<wasmtime_sharedmemory_t>::into_raw(Box::new(mem)), in wasmtime_sharedmemory_new()
25 ) -> Box<wasmtime_sharedmemory_t> { in wasmtime_sharedmemory_clone()
26 Box::new(mem.clone()) in wasmtime_sharedmemory_clone()
32 ) -> Box<wasm_memorytype_t> { in wasmtime_sharedmemory_type()
33 Box::new(wasm_memorytype_t::new(mem.ty())) in wasmtime_sharedmemory_type()
58 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_sharedmemory_grow()
H A Dengine.rs13 pub extern "C" fn wasm_engine_new() -> Box<wasm_engine_t> { in wasm_engine_new()
25 Box::new(wasm_engine_t { in wasm_engine_new()
31 pub extern "C" fn wasm_engine_new_with_config(c: Box<wasm_config_t>) -> Box<wasm_engine_t> { in wasm_engine_new_with_config()
36 Box::new(wasm_engine_t { in wasm_engine_new_with_config()
42 pub extern "C" fn wasmtime_engine_clone(engine: &wasm_engine_t) -> Box<wasm_engine_t> { in wasmtime_engine_clone()
43 Box::new(engine.clone()) in wasmtime_engine_clone()
H A Dlinker.rs20 Box::new(wasmtime_linker_t { in wasmtime_linker_new()
27 Box::new(wasmtime_linker_t { in wasmtime_linker_clone()
61 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_define()
80 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_define_func()
99 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_define_func_unchecked()
114 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_define_wasi()
130 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_define_instance()
143 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_instantiate()
153 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_instantiate_pre()
168 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_linker_module()
[all …]
H A Dexn.rs21 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_exn_new()
36 *exn_ret = Box::into_raw(Box::new(wasmtime_exn_t { exn: owned })); in wasmtime_exn_new()
45 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_exn_tag()
70 ) -> Option<Box<wasmtime_error_t>> { in wasmtime_exn_field()
81 exn: Box<wasmtime_exn_t>, in wasmtime_context_set_exception()
82 ) -> Box<wasm_trap_t> { in wasmtime_context_set_exception()
86 Box::new(wasm_trap_t::new(wasmtime::Error::new(thrown))) in wasmtime_context_set_exception()
97 *exn_ret = Box::into_raw(Box::new(wasmtime_exn_t { exn: owned })); in wasmtime_context_take_exception()
H A Dfunc.rs29 ) -> Option<Box<wasm_trap_t>>;
35 ) -> Option<Box<wasm_trap_t>>;
60 ) -> Box<wasm_func_t> { in create_function()
85 Box::new(wasm_func_t { in create_function()
98 ) -> Box<wasm_func_t> { in wasm_func_new()
109 ) -> Box<wasm_func_t> { in wasm_func_new_with_env()
160 Ok(Err(err)) => Box::into_raw(Box::new(wasm_trap_t::new(err))), in wasm_func_call()
230 ) -> Option<Box<wasm_trap_t>>;
384 *trap_ret = Box::into_raw(Box::new(wasm_trap_t::new(err))); in wasmtime_func_call()
407 *trap_ret = Box::into_raw(Box::new(wasm_trap_t::new(err))); in store_err()
[all …]
/wasmtime-44.0.1/crates/wasi-common/src/
H A Dctx.rs27 pub random: Mutex<Box<dyn RngCore + Send + Sync>>,
29 pub sched: Box<dyn WasiSched>,
35 random: Box<dyn RngCore + Send + Sync>, in new()
37 sched: Box<dyn WasiSched>, in new()
48 s.set_stdin(Box::new(crate::pipe::ReadPipe::new(std::io::empty()))); in new()
49 s.set_stdout(Box::new(crate::pipe::WritePipe::new(std::io::sink()))); in new()
61 file: Box<dyn WasiFile>, in push_file()
100 pub fn set_stdin(&self, f: Box<dyn WasiFile>) { in set_stdin()
104 pub fn set_stdout(&self, f: Box<dyn WasiFile>) { in set_stdout()
108 pub fn set_stderr(&self, f: Box<dyn WasiFile>) { in set_stderr()
[all …]
/wasmtime-44.0.1/crates/c-api/src/component/types/
H A Dval.rs21 List(Box<wasmtime_component_list_type_t>),
22 Record(Box<wasmtime_component_record_type_t>),
23 Tuple(Box<wasmtime_component_tuple_type_t>),
25 Enum(Box<wasmtime_component_enum_type_t>),
26 Option(Box<wasmtime_component_option_type_t>),
27 Result(Box<wasmtime_component_result_type_t>),
28 Flags(Box<wasmtime_component_flags_type_t>),
29 Own(Box<wasmtime_component_resource_type_t>),
31 Future(Box<wasmtime_component_future_type_t>),
32 Stream(Box<wasmtime_component_stream_type_t>),
[all …]
H A Dcomponent.rs121 Component(Box<wasmtime_component_type_t>),
122 ComponentInstance(Box<wasmtime_component_instance_type_t>),
123 Module(Box<wasmtime_module_type_t>),
124 ComponentFunc(Box<wasmtime_component_func_type_t>),
125 Resource(Box<wasmtime_component_resource_type_t>),
126 CoreFunc(Box<wasm_functype_t>),
134 wasmtime_component_item_t::Component(Box::new(ty.into())) in from()
137 wasmtime_component_item_t::ComponentInstance(Box::new(ty.into())) in from()
139 ComponentItem::Module(ty) => wasmtime_component_item_t::Module(Box::new(ty.into())), in from()
141 wasmtime_component_item_t::ComponentFunc(Box::new(ty.into())) in from()
[all …]
/wasmtime-44.0.1/cranelift/isle/veri/veri_engine/src/
H A Dannotations.rs70 fn unop<F: Fn(Box<Expr>) -> Expr>( in spec_op_to_expr()
81 u(Box::new(spec_to_expr(&args[0], env))) in spec_op_to_expr()
83 fn binop<F: Fn(Box<Expr>, Box<Expr>) -> Expr>( in spec_op_to_expr()
95 Box::new(spec_to_expr(&args[0], env)), in spec_op_to_expr()
96 Box::new(spec_to_expr(&args[1], env)), in spec_op_to_expr()
100 fn variadic_binop<F: Fn(Box<Expr>, Box<Expr>) -> Expr>( in spec_op_to_expr()
117 .fold(last, |acc, a| b(Box::new(a.clone()), Box::new(acc))) in spec_op_to_expr()
168 Box::new(Width::Const(i)), in spec_op_to_expr()
175 Box::new(Width::Const(i)), in spec_op_to_expr()
250 Expr::Switch(Box::new(switch_on), arms) in spec_op_to_expr()
[all …]
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dasync_transmit_caller.rs89 futures.push(Box::pin(send.map(|v| { in run()
91 })) as Pin<Box<dyn Future<Output = _>>>); in run()
92 futures.push(Box::pin( in run()
104 let send = Box::pin(caller_future_tx1.write("x".into())); in run()
162 let next = Box::pin(callee_stream_rx.next()); in run()
168 futures.push(Box::pin(next.map(|v| { in run()
170 })) as Pin<Box<dyn Future<Output = _>>>); in run()
171 futures.push(Box::pin( in run()
183 let next = Box::pin(callee_future_rx1.into_future()); in run()
206 let next = Box::pin(callee_stream_rx.next()); in run()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dtiming.rs5 use alloc::boxed::Box;
37 pub fn $pass() -> Box<dyn Any> {
107 fn start_pass(&self, pass: Pass) -> Box<dyn Any>; in start_pass()
121 use alloc::boxed::Box;
131 static PROFILER: RefCell<Box<dyn Profiler>> = RefCell::new(Box::new(DefaultProfiler));
137 pub fn set_thread_profiler(new_profiler: Box<dyn Profiler>) -> Box<dyn Profiler> { in set_thread_profiler()
144 pub fn start_pass(pass: Pass) -> Box<dyn Any> { in start_pass()
266 Box::new(DefaultTimingToken { in start_pass()
312 use alloc::boxed::Box;
317 Box::new(()) in start_pass()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/
H A Dhost_data.rs26 slab: Slab<Box<dyn Any + Send + Sync>>,
34 fn deref_box<T: ?Sized>(b: &Box<T>) -> &T { in deref_box()
38 fn deref_box_mut<T: ?Sized>(b: &mut Box<T>) -> &mut T { in deref_box_mut()
44 pub fn alloc(&mut self, value: Box<dyn Any + Send + Sync>) -> ExternRefHostDataId { in alloc()
53 pub fn dealloc(&mut self, id: ExternRefHostDataId) -> Box<dyn Any + Send + Sync> { in dealloc()
60 let data: &Box<dyn Any + Send + Sync> = self.slab.get(id.0).unwrap(); in get()
66 let data: &mut Box<dyn Any + Send + Sync> = self.slab.get_mut(id.0).unwrap(); in get_mut()
80 let id = table.alloc(Box::new(x)); in correct_dyn_object()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/wave/
H A Dcomponent.rs59 return Box::new(std::iter::empty()); in record_fields()
66 return Box::new(std::iter::empty()); in tuple_element_types()
68 Box::new(tuple.types()) in tuple_element_types()
73 return Box::new(std::iter::empty()); in variant_cases()
80 return Box::new(std::iter::empty()); in enum_cases()
82 Box::new(enum_.names().map(Into::into)) in enum_cases()
96 return Box::new(std::iter::empty()); in flags_names()
98 Box::new(flags.names().map(Into::into)) in flags_names()
263 Box::new(list.iter().map(cow)) in unwrap_list()
271 Box::new(tuple.iter().map(cow)) in unwrap_tuple()
[all …]
/wasmtime-44.0.1/crates/wasi-common/src/sync/
H A Dmod.rs80 pub fn stdin(&mut self, f: Box<dyn WasiFile>) -> &mut Self { in stdin()
84 pub fn stdout(&mut self, f: Box<dyn WasiFile>) -> &mut Self { in stdout()
88 pub fn stderr(&mut self, f: Box<dyn WasiFile>) -> &mut Self { in stderr()
93 self.stdin(Box::new(crate::sync::stdio::stdin())) in inherit_stdin()
96 self.stdout(Box::new(crate::sync::stdio::stdout())) in inherit_stdout()
99 self.stderr(Box::new(crate::sync::stdio::stderr())) in inherit_stderr()
109 let dir = Box::new(crate::sync::dir::Dir::from_cap_std(dir)); in preopened_dir()
119 let file: Box<dyn WasiFile> = socket.into(); in preopened_socket()
132 pub fn random_ctx() -> Box<dyn RngCore + Send + Sync> { in random_ctx()
134 Box::new(cap_rand::rngs::StdRng::from_seed(rng.r#gen())) in random_ctx()

12345678910>>...19