You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generate precise traps in component adapters (#12215)
* generate precise traps in component adapters
Previously, we generated a generic `unreachable` instruction for each trap in a
fused adapter, plus some metadata to recover the specific kind of trap.
However, that metadata was never hooked up to anything, so we only got a generic
`unreachable` message at runtime.
This commit removes the metadata tracking and instead simply calls a host
intrinsic, passing the trap code as a parameter. This is somewhate pessimal
compared with what we had before, but improves ergonomics and allows us to avoid
forking as many tests from the component-model repo.
If performance becomes an issue, we can easily add an option to skip the host
call and only emit an `unreachable` instruction as before.
Note that I've removed forked versions of three tests in favor of their upstream
equivalents.
Fixes#11683
* update `strings.rs` tests
* bless disas tests
0 commit comments