We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think we could do this with a post-processing pass, similar to what we do with ensure_termination.
ensure_termination
We'd walk over each instruction and potentially insert some code right before it:
table.get
table.set
unreachable
br
We would also have to make sure that active data/elem segments were always in bounds of their memories/tables.
I think that's everything? I might be missing some trapping cases, but I think the approach would work for everything.
cc @alexcrichton
The text was updated successfully, but these errors were encountered:
Done in #769
Sorry, something went wrong.
No branches or pull requests
I think we could do this with a post-processing pass, similar to what we do with
ensure_termination
.We'd walk over each instruction and potentially insert some code right before it:
table.get
andtable.set
unreachable
would be replaced with code to create dummy result values (ie zeroes) and thenbr
out of the current control frameWe would also have to make sure that active data/elem segments were always in bounds of their memories/tables.
I think that's everything? I might be missing some trapping cases, but I think the approach would work for everything.
cc @alexcrichton
The text was updated successfully, but these errors were encountered: