Closed ngzhian closed 3 years ago
I think this wouldn't work upstream, because the [upstream definition]:(https://github.com/WebAssembly/spec/blob/master/interpreter/script/script.ml#L25)
type result = result' Source.phrase
and result' =
| LitResult of literal
| NanResult of nanop
| RefResult of Types.ref_type
RefResult
needs the Source.phrase outside.
This PR is more to clean up the kludge I introduced when changing result to include SimdResult
.
Took the chance to clean up the matching logic for SimdResult too.