-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The only ones that are failing are imports, exports, linking and start. Fixes: * Make sure to assign loc_ for WasmVar * Imports must occur before any definition, not just a definition of the same kind * Check that load/store alignment is not larger than natural alignment * Always check type stack at the end of the check_block; that way an empty block is still validated * Only allow one memory or table, including imports * Don't allow importing or exporting mutable globals * Loop label signature is for the fallthrough at the bottom, not the branch target. This was implemented properly in the AST checker, but not in binary-reader-interpreter * `top_type_is_any` will check if there is ANY anywhere on the type stack; previously this check did not look past the top label's type stack limit * `drop_types_for_return` may be called without having enough values on the type stack; for example, at the end of a function the ends with return * properly handle cleaning up the type stack for the interpreter when branching to the implicit function label * rename invoke -> action a few places
- Loading branch information
Showing
69 changed files
with
2,048 additions
and
2,278 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.