forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1638446 - Remove bottom type from wasm validation. r=lth
This commit removes the bottom type from wasm instruction validation. This type was added in reference-types to avoid the need for lub or glb calculations for the br_table and select instructions. Now that subtyping is removed, the typed select instruction was kept but the bottom type was removed. The only place where a bottom type is observable is in validation of the br_table instruction when the input value to pass to the branches is stack polymorphic. With a bottom-type we check that the input type is a subtype of each branch target type referenced by br_table without fixing the input type to the branch target type. Without a bottom-type, we do the same but fix the input type as we check branch target types. Differential Revision: https://phabricator.services.mozilla.com/D75988
- Loading branch information
Showing
1 changed file
with
25 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters