-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
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
Update load/store to match design repo changes #86
Conversation
LGTM, I like it. (The one odd case that is not prevented in the AST by construction is Does it still make sense to call it
|
I know and it bugged me too :) I was thinking we could have some new variant that enumerated the valid
|
Something could probably be done with polymorphic variants and GADTs, but I
don't think it's worth going there.
|
Update load/store to match design repo changes
…embly#86) * Fix expected trap messages. The spec interpreter says "element segment dropped", rather than "elements segment dropped". * Fix "zero len, but dst offset out of bounds" test. Fix this test to test what it's comment says it's testing. * Add more tests for zero-length operations. * Update the Overview text to reflect the zero-length at-the-end semantics.
… (WebAssembly#87) Change the test generators to use `ref.func` and remove `passive`. At some point we'll want to remove the generators, but for let's try to maintain them.
* Revert "Allow cont ref to be non-null in switch (WebAssembly#85)" This reverts commit 92cbcc5. * Remove other unnecessary `null?` in instruction typing
* Rework IndexValueToU64 to allow more inputs to BigInts * Address #86 feedback
Updating the spec repo to re-include ops re-added by design/#366.
In the process, I applied the idea we discussed in the other issue of splitting
Load
intoLoad
/LoadExtend
andStore
intoStore
/StoreTrunc
. Given that the extend/trunc are really doing semantically different things and take additional immediate arguments, this feels like the right thing to do and makes theLoad
/Store
cases really short and sweet.Patch also contains minor fix of source info in
Const
for better error reporting.