| /wasmtime-44.0.1/tests/misc_testsuite/component-model/async/ |
| H A D | error-context.wast | 15 ;; error-context.debug-message 23 (import "" "error-context.debug-message" (func $error-context-debug-message (param i32 i32))) 25 …(core func $error-context-debug-message (canon error-context.debug-message (memory $libc "memory")… 26 …ate $m (with "" (instance (export "error-context.debug-message" (func $error-context-debug-message… 38 ;; Test edge-case behavior of `error-context.debug-message`. 58 (import "" "error-context.debug-message" (func $error-context.debug-message (param i32 i32))) 65 (call $error-context.debug-message (local.get $handle) (local.get $dst)) 71 …(core func $error-context.debug-message (canon error-context.debug-message (memory $libc "memory")… 77 (export "error-context.debug-message" (func $error-context.debug-message)) 86 (assert_trap (invoke "run" (u32.const 65532)) "invalid debug message pointer")
|
| /wasmtime-44.0.1/tests/misc_testsuite/component-model/ |
| H A D | error-context-trap-in-post-return.wast | 11 (core func $error-context.debug-message 12 (canon error-context.debug-message 20 (import "" "error-context.debug-message" (func $error-context.debug-message (param i32 i32))) 25 …(func (export "trap-calling-error-context-debug-message") (call $error-context.debug-message (i32.… 31 (export "error-context.debug-message" (func $error-context.debug-message)) 37 (func (export "trap-calling-error-context-debug-message") 39 (post-return (func $dm "trap-calling-error-context-debug-message")))) 48 (assert_trap (invoke "trap-calling-error-context-debug-message") "cannot leave component instance")
|
| /wasmtime-44.0.1/crates/core/src/error/ |
| H A D | macros.rs | 89 ( $message:literal $(,)? ) => { 90 $crate::error::Error::from_format_args($crate::error::macros::format_args!($message)) 94 ( $message:literal , $( $args:tt )* ) => { 95 …$crate::error::Error::from_format_args($crate::error::macros::format_args!($message , $( $args )* … 309 pub fn construct<M>(&self, message: M) -> Error in construct() 313 Error::msg(message) in construct() 325 message: String, field 331 match self.message.try_reserve(s.len()) { in write_str() 333 self.message.push_str(s); in write_str() 337 self.oom = Some(OutOfMemory::new(self.message.len() + s.len())); in write_str() [all …]
|
| /wasmtime-44.0.1/cranelift/reader/src/ |
| H A D | error.rs | 21 pub message: String, field 29 write!(f, "command-line arguments: {}", self.message) in fmt() 31 write!(f, "{}: {}", self.location.line_number, self.message) in fmt() 46 message: $msg.to_string(), 54 message: format!( $fmt, $( $arg ),+ ), 64 message: format!($fmt, $( $arg ),+ ),
|
| H A D | isaspec.rs | 67 message: format!("unknown setting '{name}'"), in from() 72 message: format!("unknown setting '{name}={value}'"), in from() 83 message: format!( $fmt, $( $arg ),+ ),
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | bug.rs | 47 message: String, field 54 pub(crate) fn new(message: fmt::Arguments<'_>, pos: &'static (&'static str, u32)) -> Self { in new() 59 message: message.to_string(), in new() 84 self.message, in fmt()
|
| /wasmtime-44.0.1/crates/wasi/tests/ |
| H A D | process_stdin.rs | 116 let message = format!("some bytes {i}\n"); in parent_process() localVariable 117 stdin_write.write_all(message.as_bytes()).unwrap(); in parent_process() 120 assert_eq!(line, message); in parent_process() 133 let message = format!("more bytes {i}\n"); in parent_process() localVariable 134 stdin_write.write_all(message.as_bytes()).unwrap(); in parent_process() 137 assert_eq!(line, message); in parent_process() 150 let message = format!("even more bytes {i}\n"); in parent_process() localVariable 151 stdin_write.write_all(message.as_bytes()).unwrap(); in parent_process() 154 assert_eq!(line, message); in parent_process()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | trap.rs | 98 message: &wasm_message_t, in wasm_trap_new() 100 let message = message.as_slice(); in wasm_trap_new() localVariable 101 if message[message.len() - 1] != 0 { in wasm_trap_new() 104 let message = String::from_utf8_lossy(&message[..message.len() - 1]); in wasm_trap_new() localVariable 106 error: Error::msg(message.into_owned()), in wasm_trap_new() 111 pub unsafe extern "C" fn wasmtime_trap_new(message: *const u8, len: usize) -> Box<wasm_trap_t> { in wasmtime_trap_new() 112 let bytes = crate::slice_from_raw_parts(message, len); in wasmtime_trap_new() 113 let message = String::from_utf8_lossy(&bytes); in wasmtime_trap_new() localVariable 115 error: Error::msg(message.into_owned()), in wasmtime_trap_new()
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/src/ |
| H A D | macros.rs | 10 pub fn print(message: &[u8]) { in print() 11 let _ = get_stderr().blocking_write_and_flush(message); in print() 20 let message = byte_array_literals::str!($arg); localVariable 21 $crate::macros::print(&message); 31 let message = byte_array_literals::str_nl!($arg); localVariable 32 $crate::macros::print(&message);
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | wasm_error.rs | 17 message: String, 52 message: e.message().into(), in from() 62 message: e.to_string(), in from() 74 WasmError::InvalidWebAssembly { message, offset } => { in fmt()
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | piped_polling.rs | 19 let message = format!("{i}"); in producer() localVariable 22 if available >= message.len() { in producer() 30 out.write(message.as_bytes()).unwrap() in producer()
|
| H A D | p3_sockets_udp_send.rs | 11 let message = b"Hello, world!"; in test_udp_send_without_bind_or_connect() localVariable 19 sock.send(message.to_vec(), Some(remote_addr)).await, in test_udp_send_without_bind_or_connect()
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | trap.cc | 10 EXPECT_EQ(t.message(), "foo"); in TEST() 36 EXPECT_TRUE(unreachable_trap.message().find("unreachable") != in TEST() 38 EXPECT_EQ(func.call(store, {1}).err().message(), in TEST() 43 EXPECT_TRUE(out_of_fuel.message().find("all fuel consumed") != in TEST()
|
| /wasmtime-44.0.1/cranelift/isle/isle/src/ |
| H A D | error.rs | 20 let message = match e { in fmt() localVariable 71 .with_message(message) in fmt() 217 writeln!(f, "{}", diagnostic.message)?; in emit() 282 pub message: String, field 290 message: String::new(), in error() 296 pub fn with_message(mut self, message: impl Into<String>) -> Self { in with_message() 297 self.message = message.into(); in with_message()
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | trap.hh | 124 std::string message() const { in message() function in wasmtime::Trap 163 std::string message() const { in message() function 165 return trap->message(); in message() 168 return std::string(error->message()); in message()
|
| H A D | error.hh | 33 std::string message() const { in message() function in wasmtime::Error 59 os << e.message(); in operator <<() 113 fprintf(stderr, "error: %s\n", this->err().message().c_str()); // NOLINT in unwrap_failed()
|
| /wasmtime-44.0.1/examples/wasip1/ |
| H A D | main.c | 32 static void exit_with_error(const char *message, wasmtime_error_t *error, 109 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 111 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| /wasmtime-44.0.1/examples/ |
| H A D | gcd.c | 16 static void exit_with_error(const char *message, wasmtime_error_t *error, 97 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 99 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| H A D | interrupt.c | 43 static void exit_with_error(const char *message, wasmtime_error_t *error, 117 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 119 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| H A D | hello.c | 16 static void exit_with_error(const char *message, wasmtime_error_t *error, 125 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 127 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| H A D | fuel.c | 16 static void exit_with_error(const char *message, wasmtime_error_t *error, 123 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 125 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| H A D | linking.c | 19 static void exit_with_error(const char *message, wasmtime_error_t *error, 133 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 135 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| /wasmtime-44.0.1/crates/c-api/ |
| H A D | CMakeLists.txt | 69 message(FATAL_ERROR [["cargo" was not found. Ensure "cargo" is in PATH. Aborting...]]) 144 message(STATUS "Cannot detect C++ Standard. Switching to C++17 by default !!") 147 message(STATUS "CMAKE_CXX_STANDARD is ${CMAKE_CXX_STANDARD}") 149 message(FATAL_ERROR "WASMTIME_CPP library does not support ${CMAKE_CXX_STANDARD}") 154 message(STATUS "ENABLE_CODE_ANALYSIS ${ENABLE_CODE_ANALYSIS}") 172 message(STATUS "Building tests")
|
| /wasmtime-44.0.1/examples/fib-debug/ |
| H A D | main.c | 45 static void exit_with_error(const char *message, wasmtime_error_t *error, 145 static void exit_with_error(const char *message, wasmtime_error_t *error, in exit_with_error() argument 147 fprintf(stderr, "error: %s\n", message); in exit_with_error()
|
| /wasmtime-44.0.1/crates/wasi-tls/src/ |
| H A D | error.rs | 8 pub fn msg<M>(message: M) -> Self in msg() 12 Self(Arc::new(message.to_string())) in msg()
|