Skip to content

[NFC] Remove TypeUpdating::canHandleAsLocal#8490

Merged
tlively merged 1 commit intomainfrom
no-canhandleaslocals
Mar 18, 2026
Merged

[NFC] Remove TypeUpdating::canHandleAsLocal#8490
tlively merged 1 commit intomainfrom
no-canhandleaslocals

Conversation

@tlively
Copy link
Member

@tlively tlively commented Mar 18, 2026

This method originally handled non-nullable types, which early in the design of Wasm GC could not be stored in locals. Now they can be stored in locals, so this function does nothing more than check if the type is concrete. The property that any type can be stored in locals is important enough that it is almost certain that all future WebAssembly extensions will preserve it, so canHandleAsLocal will probably never have a non-trivial implementation again. Remove this utility and simplify all its former users.

This method originally handled non-nullable types, which early in the design of Wasm GC could not be stored in locals. Now they can be stored in locals, so this function does nothing more than check if the type is concrete. The property that any type can be stored in locals is important enough that it is almost certain that all future WebAssembly extensions will preserve it, so canHandleAsLocal will probably never have a non-trivial implementation again. Remove this utility and simplify all its former users.
@tlively tlively requested a review from kripken March 18, 2026 20:05
@tlively tlively merged commit a63a322 into main Mar 18, 2026
16 checks passed
@tlively tlively deleted the no-canhandleaslocals branch March 18, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants