This reduces the size of wasi_snapshot_preview1.command.wasm from 75029 bytes to 53875 bytes for a total win of 21154 bytes. This is done by deduplicating most of the trap messages and the code for printing those trap messages. Also got some small wins by making the assertion message shorter.
This reduces the size of wasi_snapshot_preview1.command.wasm from 75029 bytes to 53875 bytes for a total win of 21154 bytes. This is done by deduplicating most of the trap messages and the code for printing those trap messages. Also got some small wins by making the assertion message shorter.
This is a continuation of https://github.com/bytecodealliance/wasmtime/pull/8858.