| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | async_dynamic.rs | 84 let f_a_a = instance.get_typed_func::<(FutureAny,), (FutureAny,)>(&mut store, "f")?; in simple_type_assertions() 93 let mk_f_a = instance.get_typed_func::<(), (FutureAny,)>(&mut store, "mk-f")?; in simple_type_assertions() 95 let mk_s_a = instance.get_typed_func::<(), (StreamAny,)>(&mut store, "mk-s")?; in simple_type_assertions() 97 assert!(instance.get_typed_func::<(), ()>(&mut store, "f").is_err()); in simple_type_assertions() 100 .get_typed_func::<(u32,), (FutureReader<u32>,)>(&mut store, "f") in simple_type_assertions() 105 .get_typed_func::<(FutureReader<u32>,), (u32,)>(&mut store, "f") in simple_type_assertions() 119 assert!(instance.get_typed_func::<(), ()>(&mut store, "s").is_err()); in simple_type_assertions() 122 .get_typed_func::<(u32,), (StreamReader<u32>,)>(&mut store, "s") in simple_type_assertions() 127 .get_typed_func::<(StreamReader<u32>,), (u32,)>(&mut store, "s") in simple_type_assertions() 266 let mk = instance.get_typed_func::<(), (StreamAny,)>(&mut store, "mk")?; in stream_any_smoke() [all …]
|
| H A D | func.rs | 38 .get_typed_func::<(), ()>(&mut store, "thunk")? in thunks() 41 .get_typed_func::<(), ()>(&mut store, "thunk-trap")? in thunks() 193 .get_typed_func::<(u8,), ()>(&mut store, "take-u8")? in integers() 196 .get_typed_func::<(i8,), ()>(&mut store, "take-s8")? in integers() 199 .get_typed_func::<(u16,), ()>(&mut store, "take-u16")? in integers() 202 .get_typed_func::<(i16,), ()>(&mut store, "take-s16")? in integers() 205 .get_typed_func::<(u32,), ()>(&mut store, "take-u32")? in integers() 208 .get_typed_func::<(i32,), ()>(&mut store, "take-s32")? in integers() 1356 let func = instance.get_typed_func::<( in test_many_parameters() 1834 let func = instance.get_typed_func::<(), (( in test_many_results() [all …]
|
| H A D | resources.rs | 279 let dtor = i.get_typed_func::<(ResourceAny,), ()>(&mut store, "dtor")?; in mismatch_resource_types() 728 let call = i.get_typed_func::<(), ()>(&mut store, "call")?; in cannot_reenter_during_import() 1115 i.get_typed_func::<(&Resource<MyType>,), ()>(&mut store, "f1") in type_mismatch() 1119 i.get_typed_func::<(&ResourceAny,), ()>(&mut store, "f1") in type_mismatch() 1124 i.get_typed_func::<(&Resource<MyType>,), ()>(&mut store, "f2") in type_mismatch() 1128 i.get_typed_func::<(&ResourceAny,), ()>(&mut store, "f2") in type_mismatch() 1133 i.get_typed_func::<(&Resource<MyType>,), ()>(&mut store, "f3") in type_mismatch() 1137 i.get_typed_func::<(&ResourceAny,), ()>(&mut store, "f3") in type_mismatch() 1140 assert!(i.get_typed_func::<(u32,), ()>(&mut store, "f3").is_ok()); in type_mismatch() 1294 let mk = i.get_typed_func::<(), (ResourceAny,)>(&mut store, "mk")?; in pass_guest_back_as_borrow() [all …]
|
| H A D | macros.rs | 32 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo")? in record_derive() 47 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in record_derive() 64 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in record_derive() 78 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in record_derive() 92 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in record_derive() 168 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in variant_derive() 185 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in variant_derive() 199 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in variant_derive() 216 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in variant_derive() 291 .get_typed_func::<(Foo,), (Foo,)>(&mut store, "echo") in enum_derive() [all …]
|
| H A D | post_return.rs | 75 let thunk = instance.get_typed_func::<(), ()>(&mut store, "thunk")?; in invoke_post_return() 146 let i32 = instance.get_typed_func::<(), (u32,)>(&mut store, "i32")?; in post_return_all_types() 147 let i64 = instance.get_typed_func::<(), (u64,)>(&mut store, "i64")?; in post_return_all_types() 148 let f32 = instance.get_typed_func::<(), (f32,)>(&mut store, "f32")?; in post_return_all_types() 149 let f64 = instance.get_typed_func::<(), (f64,)>(&mut store, "f64")?; in post_return_all_types() 197 let get = instance.get_typed_func::<(), (WasmStr,)>(&mut store, "get")?; in post_return_string() 226 let f = instance.get_typed_func::<(), ()>(&mut store, "f")?; in trap_in_post_return_poisons_instance()
|
| H A D | async.rs | 35 let thunk = instance.get_typed_func::<(), ()>(&mut store, "thunk")?; in smoke() 40 .get_typed_func::<(), ()>(&mut store, "thunk-trap")? in smoke() 86 let thunk = instance.get_typed_func::<(), ()>(&mut store, "thunk")?; in smoke_func_wrap() 213 let func = instance.get_typed_func::<(Vec<u8>,), ()>(&mut store, "run")?; in poll_through_wasm_activation() 300 let f = i.get_typed_func::<(Resource<MyType>,), ()>(&mut store, "f")?; in drop_resource_async() 661 let func = instance.get_typed_func::<(), (u32,)>(&mut store, func)?; in task_deletion() 816 .get_typed_func::<(), ()>(&mut access, "run") in run_wasm_in_call_async() 826 let run = instance_a.get_typed_func::<(), ()>(&mut store, "run")?; in run_wasm_in_call_async() 942 let func = instance.get_typed_func::<(), ()>(&mut store, "f")?; in cancel_host_task_does_not_leak() 1024 let func = instance.get_typed_func::<(), ()>(&mut store, "f")?; in sync_lower_async_host_does_not_leak() [all …]
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | pulley.rs | 170 .get_typed_func::<(), (i32, i32, i32)>(&mut store, func) in pulley_provenance_test() 179 let func = instance.get_typed_func::<Func, (i32, i32, i32)>(&mut store, func)?; in pulley_provenance_test() 185 .get_typed_func::<(), ()>(&mut store, "unreachable")? in pulley_provenance_test() 192 .get_typed_func::<(), i32>(&mut store, "divide-by-zero")? in pulley_provenance_test() 199 .get_typed_func::<(), ()>(&mut store, "memory-intrinsics")? in pulley_provenance_test() 202 .get_typed_func::<(), ()>(&mut store, "table-intrinsics")? in pulley_provenance_test() 205 .get_typed_func::<(), ()>(&mut store, "table-intrinsics2")? in pulley_provenance_test() 217 .get_typed_func::<(), ()>(&mut store, "ref-func-myself")? in pulley_provenance_test() 320 .get_typed_func::<(), ()>(&mut store, "resource-intrinsics")? in pulley_provenance_test_components() 451 let run = instance.get_typed_func::<(), ()>(&mut store, "run-stackless")?; in pulley_provenance_test_async_components() [all …]
|
| H A D | stack_overflow.rs | 74 let f1 = instance.get_typed_func::<(), ()>(&mut store, "f1")?; in host_always_has_some_stack() 75 let f2 = instance.get_typed_func::<(), ()>(&mut store, "f2")?; in host_always_has_some_stack() 76 let f3 = instance.get_typed_func::<(), ()>(&mut store, "f3")?; in host_always_has_some_stack() 77 let f4 = instance.get_typed_func::<(), ()>(&mut store, "f4")?; in host_always_has_some_stack() 161 let func = instance.get_typed_func::<(), i64>(&mut store, "")?; in big_stack_works_ok() 180 let func = instance.get_typed_func::<(), ()>(&mut store, "f")?; in infinite_wasm_stack_does_not_panic()
|
| H A D | traps.rs | 27 let run_func = instance.get_typed_func::<(), ()>(&mut store, "run")?; in test_trap_return() 202 let a = instance.get_typed_func::<(), ()>(&mut store, "a")?; in test_trap_through_host() 836 .get_typed_func::<(), ()>(&mut store, "run")? in multithreaded_traps() 844 .get_typed_func::<(), ()>(&mut store, "run") in multithreaded_traps() 1019 .get_typed_func::<(), ()>(&mut *sync_store, "c") in async_then_sync_trap() 1031 .get_typed_func::<(), ()>(&mut async_store, "a") in async_then_sync_trap() 1099 .get_typed_func::<(), ()>(&mut *async_store, "c") in sync_then_async_trap() 1112 .get_typed_func::<(), ()>(&mut sync_store, "a") in sync_then_async_trap() 1152 let f = instance.get_typed_func::<(), ()>(&mut store, "f")?; in standalone_backtrace() 1180 let f = instance.get_typed_func::<(), ()>(&mut store, "f")?; in standalone_backtrace_disabled() [all …]
|
| H A D | coredump.rs | 24 let run_func = instance.get_typed_func::<(), ()>(&mut store, "run")?; in coredump_attached_to_error() 62 let a_func = instance.get_typed_func::<(), ()>(&mut store, "a")?; in coredump_has_stack() 104 let a_func = linking1.get_typed_func::<(), ()>(&mut store, "a")?; in coredump_has_modules_and_instances() 158 let a_func = instance.get_typed_func::<(), i32>(&mut store, "a")?; in coredump_has_host_globals_and_memory() 192 let a_func = instance.get_typed_func::<(), ()>(&mut store, "a")?; in coredump_has_defined_globals_and_memory() 252 let trap_func = instance_b.get_typed_func::<(), ()>(&mut store, "trap")?; in multiple_globals_memories_and_instances() 281 let foo = instance.get_typed_func::<(), ()>(&mut store, "foo")?; in core_dump_with_shared_memory()
|
| H A D | iloop.rs | 34 let iloop = instance.get_typed_func::<(), ()>(&mut store, "loop")?; in loops_interruptible() 47 let iloop = instance.get_typed_func::<(), ()>(&mut store, "loop")?; in functions_interruptible() 94 let iloop = instance.get_typed_func::<(), ()>(&mut store, "loop")?; in loop_interrupt_from_afar() 130 let iloop = instance.get_typed_func::<(), ()>(&mut store, "loop")?; in function_interrupt_from_afar()
|
| H A D | wait_notify.rs | 30 .get_typed_func::<(), i32>(&mut store, "func1") in atomic_wait_timeout_length() 82 .get_typed_func::<(), i32>(&mut store, "second_thread") in atomic_wait_notify_basic() 92 .get_typed_func::<(), i32>(&mut store, "first_thread") in atomic_wait_notify_basic()
|
| H A D | relocs.rs | 52 let foo = i.get_typed_func::<(), i32>(&mut store, "foo")?; in forward_call_works() 73 let foo = i.get_typed_func::<(), i32>(&mut store, "foo")?; in backwards_call_works() 117 let func = instance.get_typed_func::<(), (i32, i32)>(&mut store, &name)?; in test_many_call_module()
|
| H A D | fuel.rs | 241 let export = instance.get_typed_func::<(), ()>(&mut store, "").unwrap(); in host_function_consumes_all() 290 .get_typed_func::<i32, i32>(&mut store, "f") in unconditionally_trapping_memory_accesses_save_fuel_before_trapping() 321 let add2 = instance.get_typed_func::<i32, i32>(&mut store, "add2")?; in get_fuel_clamps_at_zero() 358 let main = instance.get_typed_func::<(), ()>(&mut store, "main")?; in immediate_trap_with_fuel1() 377 let func = instance.get_typed_func::<f32, ()>(&mut store, "")?; in ensure_stack_alignment() 418 let main = instance.get_typed_func::<(), ()>(&mut store, "main")?; in custom_operator_cost()
|
| /wasmtime-44.0.1/tests/ |
| H A D | disable_host_trap_handlers.rs | 39 let load = instance.get_typed_func::<i32, i32>(&mut store, "load")?; in no_host_trap_handlers() 40 let div = instance.get_typed_func::<(i32, i32), i32>(&mut store, "div")?; in no_host_trap_handlers() 41 let unreachable = instance.get_typed_func::<(), ()>(&mut store, "unreachable")?; in no_host_trap_handlers() 42 let overflow = instance.get_typed_func::<(), ()>(&mut store, "overflow")?; in no_host_trap_handlers()
|
| /wasmtime-44.0.1/examples/ |
| H A D | multimemory.rs | 27 let size0 = instance.get_typed_func::<(), i32>(&mut store, "size0")?; in main() 28 let load0 = instance.get_typed_func::<i32, i32>(&mut store, "load0")?; in main() 29 let store0 = instance.get_typed_func::<(i32, i32), ()>(&mut store, "store0")?; in main() 34 let size1 = instance.get_typed_func::<(), i32>(&mut store, "size1")?; in main() 35 let load1 = instance.get_typed_func::<i32, i32>(&mut store, "load1")?; in main() 36 let store1 = instance.get_typed_func::<(i32, i32), ()>(&mut store, "store1")?; in main()
|
| H A D | memory.rs | 22 let size = instance.get_typed_func::<(), i32>(&mut store, "size")?; in main() 23 let load_fn = instance.get_typed_func::<i32, i32>(&mut store, "load")?; in main() 24 let store_fn = instance.get_typed_func::<(i32, i32), ()>(&mut store, "store")?; in main()
|
| /wasmtime-44.0.1/crates/component-macro/tests/expanded/ |
| H A D | integers.rs | 605 .get_typed_func::<(u8,), ()>(&mut store, &self.a1)? in load() 608 .get_typed_func::<(i8,), ()>(&mut store, &self.a2)? in load() 611 .get_typed_func::<(u16,), ()>(&mut store, &self.a3)? in load() 614 .get_typed_func::<(i16,), ()>(&mut store, &self.a4)? in load() 617 .get_typed_func::<(u32,), ()>(&mut store, &self.a5)? in load() 620 .get_typed_func::<(i32,), ()>(&mut store, &self.a6)? in load() 623 .get_typed_func::<(u64,), ()>(&mut store, &self.a7)? in load() 629 .get_typed_func::< in load() 635 .get_typed_func::<(), (u8,)>(&mut store, &self.r1)? in load() 638 .get_typed_func::<(), (i8,)>(&mut store, &self.r2)? in load() [all …]
|
| H A D | conventions.rs | 554 .get_typed_func::<(), ()>(&mut store, &self.kebab_case)? in load() 557 .get_typed_func::< in load() 563 .get_typed_func::< in load() 569 .get_typed_func::< in load() 575 .get_typed_func::<(), ()>(&mut store, &self.apple)? in load() 578 .get_typed_func::<(), ()>(&mut store, &self.apple_pear)? in load() 581 .get_typed_func::< in load() 587 .get_typed_func::<(), ()>(&mut store, &self.a0)? in load() 590 .get_typed_func::<(), ()>(&mut store, &self.is_xml)? in load() 593 .get_typed_func::<(), ()>(&mut store, &self.explicit)? in load() [all …]
|
| H A D | integers_concurrent.rs | 615 .get_typed_func::<(u8,), ()>(&mut store, &self.a1)? in load() 618 .get_typed_func::<(i8,), ()>(&mut store, &self.a2)? in load() 621 .get_typed_func::<(u16,), ()>(&mut store, &self.a3)? in load() 624 .get_typed_func::<(i16,), ()>(&mut store, &self.a4)? in load() 627 .get_typed_func::<(u32,), ()>(&mut store, &self.a5)? in load() 630 .get_typed_func::<(i32,), ()>(&mut store, &self.a6)? in load() 633 .get_typed_func::<(u64,), ()>(&mut store, &self.a7)? in load() 639 .get_typed_func::< in load() 645 .get_typed_func::<(), (u8,)>(&mut store, &self.r1)? in load() 648 .get_typed_func::<(), (i8,)>(&mut store, &self.r2)? in load() [all …]
|
| H A D | integers_async.rs | 694 .get_typed_func::<(u8,), ()>(&mut store, &self.a1)? in load() 697 .get_typed_func::<(i8,), ()>(&mut store, &self.a2)? in load() 700 .get_typed_func::<(u16,), ()>(&mut store, &self.a3)? in load() 703 .get_typed_func::<(i16,), ()>(&mut store, &self.a4)? in load() 706 .get_typed_func::<(u32,), ()>(&mut store, &self.a5)? in load() 709 .get_typed_func::<(i32,), ()>(&mut store, &self.a6)? in load() 712 .get_typed_func::<(u64,), ()>(&mut store, &self.a7)? in load() 718 .get_typed_func::< in load() 724 .get_typed_func::<(), (u8,)>(&mut store, &self.r1)? in load() 727 .get_typed_func::<(), (i8,)>(&mut store, &self.r2)? in load() [all …]
|
| H A D | lists.rs | 1325 .get_typed_func::< in load() 1331 .get_typed_func::< in load() 1337 .get_typed_func::< in load() 1343 .get_typed_func::< in load() 1349 .get_typed_func::< in load() 1355 .get_typed_func::< in load() 1361 .get_typed_func::< in load() 1367 .get_typed_func::< in load() 1373 .get_typed_func::< in load() 1379 .get_typed_func::< in load() [all …]
|
| H A D | conventions_async.rs | 612 .get_typed_func::<(), ()>(&mut store, &self.kebab_case)? in load() 615 .get_typed_func::< in load() 621 .get_typed_func::< in load() 627 .get_typed_func::< in load() 633 .get_typed_func::<(), ()>(&mut store, &self.apple)? in load() 636 .get_typed_func::<(), ()>(&mut store, &self.apple_pear)? in load() 639 .get_typed_func::< in load() 645 .get_typed_func::<(), ()>(&mut store, &self.a0)? in load() 648 .get_typed_func::<(), ()>(&mut store, &self.is_xml)? in load() 651 .get_typed_func::<(), ()>(&mut store, &self.explicit)? in load() [all …]
|
| /wasmtime-44.0.1/benches/ |
| H A D | trap.rs | 41 instance.get_typed_func::<(), ()>(&mut store, "").unwrap(); in bench_multi_threaded_traps() 68 let f = instance.get_typed_func::<(), ()>(&mut store, "").unwrap(); in bench_multi_threaded_traps() 110 let f = instance.get_typed_func::<(), ()>(&mut store, "").unwrap(); in bench_many_modules_registered_traps() 140 let f = instance.get_typed_func::<(), ()>(&mut store, "").unwrap(); in bench_many_stack_frames_traps() 199 .get_typed_func::<(i32,), ()>(&mut store, "f") in bench_host_wasm_frames_traps()
|
| /wasmtime-44.0.1/crates/fuzzing/tests/oom/ |
| H A D | caller.rs | 40 let run = instance.get_typed_func::<(), ()>(&mut store, "run")?; in caller_get_export() 78 let run = instance.get_typed_func::<(), ()>(&mut store, "run")?; in caller_data() 116 let run = instance.get_typed_func::<(), ()>(&mut store, "run")?; in caller_engine()
|