| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Nice! Thanks for following through with this cleanup!
One question though. Maybe I miss something.
// We need the FunctionSig. If the CanonicalSig contains indexed types, weReally? Why can't we use the canonical signature in `GetTypeForFunction`?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// We need the FunctionSig. If the CanonicalSig contains indexed types, weReally? Why can't we use the canonical signature in `GetTypeForFunction`?
If the signature contains indexed types, the behavior would be different. The function would return something like `(ref null 5)` where 5 would be the canonical index instead of the module-relative index.
So I did this to preserve the old behavior, which makes sense to me. But I can't find the expected behavior in the spec, I think it has not been rebased on top of WasmGC yet...
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Thanks, LGTM!
// We need the FunctionSig. If the CanonicalSig contains indexed types, weThibaud MichaudReally? Why can't we use the canonical signature in `GetTypeForFunction`?
If the signature contains indexed types, the behavior would be different. The function would return something like `(ref null 5)` where 5 would be the canonical index instead of the module-relative index.
So I did this to preserve the old behavior, which makes sense to me. But I can't find the expected behavior in the spec, I think it has not been rebased on top of WasmGC yet...
Oh, I see, this is hidden in `ValueType::name()`.
Yeah, this is not really spec'ed and we discussed removing the implementation of type reflection already. So for now it shouldn't really matter what we return here, but it also doesn't hurt to be slow and iterate all types in the module.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[wasm][cleanup] Remove serialized signature from tag
We already store the index of the canonical signature, so use that
instead.
R=clem...@chromium.org
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |