Home
last modified time | relevance | path

Searched refs:panic (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/wasmtime-44.0.1/crates/cache/src/
H A Dtests.rs67 entry1.get_data::<_, i32, i32>(1, |_| panic!()).unwrap(); in test_write_read_cache()
70 entry1.get_data::<_, i32, i32>(1, |_| panic!()).unwrap(); in test_write_read_cache()
71 entry1.get_data::<_, i32, i32>(2, |_| panic!()).unwrap(); in test_write_read_cache()
74 entry1.get_data::<_, i32, i32>(1, |_| panic!()).unwrap(); in test_write_read_cache()
75 entry1.get_data::<_, i32, i32>(2, |_| panic!()).unwrap(); in test_write_read_cache()
76 entry1.get_data::<_, i32, i32>(3, |_| panic!()).unwrap(); in test_write_read_cache()
79 entry1.get_data::<_, i32, i32>(1, |_| panic!()).unwrap(); in test_write_read_cache()
80 entry1.get_data::<_, i32, i32>(2, |_| panic!()).unwrap(); in test_write_read_cache()
81 entry1.get_data::<_, i32, i32>(3, |_| panic!()).unwrap(); in test_write_read_cache()
82 entry1.get_data::<_, i32, i32>(4, |_| panic!()).unwrap(); in test_write_read_cache()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/stack_switching/stack/
H A Ddummy.rs23 panic!("Stack switching disabled or not implemented on this platform") in unallocated()
27 panic!("Stack switching disabled or not implemented on this platform") in is_unallocated()
35 panic!("Stack switching disabled or not implemented on this platform") in is_from_raw_parts()
39 panic!("Stack switching disabled or not implemented on this platform") in top()
43 panic!("Stack switching disabled or not implemented on this platform") in range()
47 panic!("Stack switching disabled or not implemented on this platform") in control_context_instruction_pointer()
51 panic!("Stack switching disabled or not implemented on this platform") in control_context_frame_pointer()
55 panic!("Stack switching disabled or not implemented on this platform") in control_context_stack_pointer()
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dscoped_hash_map.rs235 Entry::Vacant(_entry) => panic!(), in basic()
240 Entry::Vacant(_entry) => panic!(), in basic()
248 Entry::Vacant(_entry) => panic!(), in basic()
252 Entry::Vacant(_entry) => panic!(), in basic()
256 Entry::Vacant(_entry) => panic!(), in basic()
261 Entry::Vacant(_entry) => panic!(), in basic()
265 Entry::Vacant(_entry) => panic!(), in basic()
270 Entry::Vacant(_entry) => panic!(), in basic()
278 Entry::Vacant(_entry) => panic!(), in basic()
282 Entry::Vacant(_entry) => panic!(), in basic()
[all …]
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/byte-array-literals/src/
H A Dlib.rs44 _ => panic!(), in convert_str()
61 Some(_) => panic!(), in to_string()
89 Some(_) => panic!(), in to_string()
90 None => panic!(), in to_string()
93 None => panic!(), in to_string()
/wasmtime-44.0.1/cranelift/entity/src/
H A Dboxed_slice.rs190 _ => panic!(), in iter()
200 _ => panic!(), in iter()
220 _ => panic!(), in iter_rev()
231 _ => panic!(), in iter_rev()
275 _ => panic!(), in values()
284 _ => panic!(), in values()
303 _ => panic!(), in values_rev()
312 _ => panic!(), in values_rev()
H A Dprimary.rs427 _ => panic!(), in iter()
437 _ => panic!(), in iter()
456 _ => panic!(), in iter_rev()
467 _ => panic!(), in iter_rev()
508 _ => panic!(), in values()
517 _ => panic!(), in values()
535 _ => panic!(), in values_rev()
544 _ => panic!(), in values_rev()
/wasmtime-44.0.1/tests/all/component_model/
H A Dimport.rs157 panic!() in simple()
258 panic!() in functions_in_instances()
868 panic!() in test_stack_and_heap_args_and_rets()
885 panic!() in test_stack_and_heap_args_and_rets()
915 panic!() in test_stack_and_heap_args_and_rets()
925 panic!() in test_stack_and_heap_args_and_rets()
935 panic!() in test_stack_and_heap_args_and_rets()
938 panic!() in test_stack_and_heap_args_and_rets()
947 panic!(); in test_stack_and_heap_args_and_rets()
957 panic!() in test_stack_and_heap_args_and_rets()
[all …]
H A Ddynamic.rs178 _ => panic!("expected map"), in maps()
208 _ => panic!("expected map"), in maps()
254 _ => panic!("expected list"), in maps_complex_types()
266 _ => panic!("expected list"), in maps_complex_types()
269 _ => panic!("expected map"), in maps_complex_types()
338 _ => panic!("expected map"), in maps_duplicate_keys()
470 _ => panic!("expected map"), in maps_large()
1041 panic!("`i` export item of wrong type") in introspection()
1063 panic!("`r` export item of wrong type") in introspection()
1085 panic!("`b` export item of wrong type") in introspection()
[all …]
/wasmtime-44.0.1/crates/fiber/src/
H A Dlib.rs216 use std::panic; in resume()
217 panic::resume_unwind(_payload); in resume()
266 use std::panic::{self, AssertUnwindSafe}; in execute()
267 let result = panic::catch_unwind(AssertUnwindSafe(|| (func)(initial, &mut suspend))); in execute()
270 Err(panic) => RunResult::Panicked(panic), in execute()
400 use std::panic::{self, AssertUnwindSafe}; in panics_propagated()
406 panic!(); in panics_propagated()
409 assert!(panic::catch_unwind(AssertUnwindSafe(|| fiber.resume(()))).is_err()); in panics_propagated()
/wasmtime-44.0.1/scripts/
H A Dpublish.rs214 s => panic!("unknown command: {}", s), in main()
222 Err(e) => panic!("Failed to run `{:?}`: {}", cmd, e), in cmd_output()
230 Err(e) => panic!("Failed to run `{:?}`: {}", cmd, e), in cmd_status()
350 panic!( in bump_version()
496 panic!( in verify()
501 panic!( in verify()
583 panic!( in verify()
599 panic!( in verify()
614 panic!( in verify()
/wasmtime-44.0.1/crates/c-api/src/
H A Dfunc.rs10 use std::panic::{self, AssertUnwindSafe};
150 let result = panic::catch_unwind(AssertUnwindSafe(|| { in wasm_func_call()
161 Err(panic) => { in wasm_func_call()
162 let err = error_from_panic(panic); in wasm_func_call()
169 fn error_from_panic(panic: Box<dyn Any + Send>) -> Error { in error_from_panic()
170 if let Some(msg) = panic.downcast_ref::<String>() { in error_from_panic()
172 } else if let Some(msg) = panic.downcast_ref::<&'static str>() { in error_from_panic()
368 let result = panic::catch_unwind(AssertUnwindSafe(|| { in wasmtime_func_call()
382 Err(panic) => { in wasmtime_func_call()
383 let err = error_from_panic(panic); in wasmtime_func_call()
/wasmtime-44.0.1/crates/environ/src/
H A Dkey.rs84 _ => panic!("invalid raw value passed to `FuncKind::from_raw`: {raw}"), in from_raw()
215 _ => panic!("invalid raw representation passed to `Abi::from_raw`: {raw}"), in from_raw()
491 _ => panic!("`FuncKey::unwrap_defined_wasm_function` called on {self:?}"), in unwrap_defined_wasm_function()
499 _ => panic!("`FuncKey::unwrap_array_to_wasm_trampoline` called on {self:?}"), in unwrap_array_to_wasm_trampoline()
507 _ => panic!("`FuncKey::unwrap_wasm_to_array_trampoline` called on {self:?}"), in unwrap_wasm_to_array_trampoline()
515 _ => panic!("`FuncKey::unwrap_wasm_to_builtin_trampoline` called on {self:?}"), in unwrap_wasm_to_builtin_trampoline()
523 _ => panic!("`FuncKey::unwrap_pulley_host_call` called on {self:?}"), in unwrap_pulley_host_call()
532 _ => panic!("`FuncKey::unwrap_component_trampoline` called on {self:?}"), in unwrap_component_trampoline()
541 _ => panic!("`FuncKey::unwrap_resource_drop_trampoline` called on {self:?}"), in unwrap_resource_drop_trampoline()
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dasync_read_resource_stream.rs24 panic!("received too many items"); in run()
31 panic!("received too few items"); in run()
H A Dp1_poll_oneoff_stdio.rs70 panic!("unexpected event type {}", event.type_.raw()); in test_stdin_read()
112 panic!("timed out with the following pending subs: {writable:?}") in test_stdout_stderr_write()
125 panic!("Unknown userdata {ud}, pending sub: {writable:?}") in test_stdout_stderr_write()
H A Dp2_file_read_write.rs37 Err(e) => panic!("Failed checking stream state: {e:?}"), in main()
43 Err(e) => panic!("Failed reading stream: {e:?}"), in main()
H A Dasync_transmit_caller.rs85 panic!() in run()
106 Ok(_) => panic!(), in run()
164 panic!() in run()
185 Ok(_) => panic!(), in run()
/wasmtime-44.0.1/cranelift/bforest/src/
H A Dnode.rs71 Self::Free { .. } => panic!("freed node"), in entries()
110 _ => panic!("Expected inner node"), in unwrap_inner()
129 _ => panic!("Expected leaf node"), in unwrap_leaf()
148 _ => panic!("Expected leaf node"), in unwrap_leaf_mut()
160 _ => panic!("Expected leaf node"), in leaf_crit_key()
187 _ => panic!("Expected inner node"), in try_inner_insert()
215 _ => panic!("Expected leaf node"), in try_leaf_insert()
298 _ => panic!("Expected leaf node"), in split()
327 _ => panic!("Expected inner node"), in inner_remove()
349 _ => panic!("Expected leaf node"), in leaf_remove()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dtraphandlers.rs255 #[cfg(all(feature = "std", panic = "unwind"))] in maybe_catch_unwind()
257 match std::panic::catch_unwind(std::panic::AssertUnwindSafe(f)) { in maybe_catch_unwind()
267 #[cfg(not(all(feature = "std", panic = "unwind")))] in maybe_catch_unwind()
456 #[cfg(all(feature = "std", panic = "unwind"))] in catch_traps()
458 reason: UnwindReason::Panic(panic), in catch_traps()
460 }) => std::panic::resume_unwind(panic), in catch_traps()
705 #[cfg(all(feature = "std", panic = "unwind"))]
759 #[cfg(all(feature = "std", panic = "unwind"))] in record_unwind()
884 #[cfg(all(feature = "std", panic = "unwind"))] in unwind()
948 panic!("Attempting to unwind with no unwind state set."); in unwind()
[all …]
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dwave.rs11 _ => panic!("called unwrap_{name} on non-{name} value", name = $name),
19 _ => panic!("called unwrap_{name} on non-{name} value", name = $name),
/wasmtime-44.0.1/winch/codegen/src/
H A Dstack.rs212 v => panic!("expected value {v:?} to be a register"), in unwrap_reg()
223 v => panic!("expected value {v:?} to be i32"), in unwrap_i32()
234 v => panic!("expected value {v:?} to be i64"), in unwrap_i64()
245 v => panic!("expected value {v:?} to be f32"), in unwrap_f32()
256 v => panic!("expected value {v:?} to be f64"), in unwrap_f64()
264 v => panic!("expected value {v:?} to be a Memory"), in unwrap_mem()
/wasmtime-44.0.1/cranelift/codegen/src/isa/aarch64/inst/
H A Dargs.rs330 _ => panic!("unknown type size: {size_bytes}"), in shift_for_type()
405 panic!("Unexpected pseudo mem-arg mode: {self:?}") in pretty_print()
547 _ => panic!("Unexpected operand_size request for: {self:?}"), in operand_size()
558 _ => panic!("Unexpected scalar FP operand size: {self:?}"), in ftype()
569 ScalarSize::Size128 => panic!("can't widen 128-bits"), in widen()
576 ScalarSize::Size8 => panic!("can't narrow 8-bits"), in narrow()
641 _ => panic!("Unexpected scalar FP operand size: {size:?}"), in from_lane_size()
697 size => panic!("Unsupported floating-point size for vector op: {size:?}"), in enc_float_size()
/wasmtime-44.0.1/cranelift/isle/veri/veri_engine/src/
H A Dverify.rs31 .unwrap_or_else(|| panic!("Missing term type instantiation for {}", config.term)) in verify_rules()
43 _ => panic!("Invalid width type: {w}"), in verify_rules()
134 panic!("No rules checked!") in verify_rules_for_term()
/wasmtime-44.0.1/cranelift/src/
H A Dbugpoint.rs917 fn get_panic_string(panic: Box<dyn std::any::Any>) -> String { in get_panic_string()
918 let panic = match panic.downcast::<&'static str>() { in get_panic_string() localVariable
922 Err(panic) => panic, in get_panic_string()
924 match panic.downcast::<String>() { in get_panic_string()
954 match std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { in check_for_crash()
984 let old_panic_hook = std::panic::take_hook(); in check_for_crash()
985 std::panic::set_hook(Box::new(|_| {})); // silence panics in check_for_crash()
987 let res = match std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { in check_for_crash()
994 std::panic::set_hook(old_panic_hook); in check_for_crash()
/wasmtime-44.0.1/winch/codegen/src/isa/aarch64/
H A Daddress.rs120 _ => panic!("Could not convert addressing mode to PairAMode"), in to_pair_addressing_mode()
182 _ => panic!("Could not convert addressing mode to AMode"), in to_addressing_mode()
193 _ => panic!("Expected register and offset addressing mode"), in unwrap_offset()
/wasmtime-44.0.1/tests/all/
H A Dpooling_allocator.rs37 Ok(_) => panic!("module instantiation should fail"), in memory_limit()
46 Ok(_) => panic!("module instantiation should fail"), in memory_limit()
251 Ok(_) => panic!("module compilation should fail"), in table_limit()
396 _ => panic!("expected a funcref"), in table_zeroed()
427 Ok(_) => panic!("instantiation should fail"), in total_core_instances_limit()
868 Ok(_) => panic!("should have hit limit"), in component_instance_size_limit()
900 Ok(_) => panic!("should have hit table limit"), in total_tables_limit()
976 Ok(_) => panic!("should have hit stack limit"), in total_stacks_limit()
1038 Ok(_) => panic!("should have hit limit"), in component_core_instances_limit()
1080 Ok(_) => panic!("should have hit limit"), in component_memories_limit()
[all …]

12345678910>>...14