Skip to content
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

Merged
merged 2 commits into from
Sep 25, 2015
Merged

Conversation

lukewagner
Copy link
Member

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 into Load/LoadExtend and Store into Store/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 the Load/Store cases really short and sweet.

Patch also contains minor fix of source info in Const for better error reporting.

@rossberg
Copy link
Member

LGTM, I like it. (The one odd case that is not prevented in the AST by construction is i32.load32/i32.store32, but perhaps that's bearable.)

Does it still make sense to call it mem_type, though? How about

type mem_size = Mem8 | Mem16 | Mem32

@lukewagner
Copy link
Member Author

LGTM, I like it. (The one odd case that is not prevented in the AST by construction is
i32.load32/i32.store32, but perhaps that's bearable.)

I know and it bugged me too :) I was thinking we could have some new variant that enumerated the valid (mem_size, value_type) pairs, but that seemed a bit worse overall.

mem_size sounds good, I'll try that.

@rossberg
Copy link
Member

rossberg commented Sep 25, 2015 via email

lukewagner added a commit that referenced this pull request Sep 25, 2015
Update load/store to match design repo changes
@lukewagner lukewagner merged commit ae419ca into master Sep 25, 2015
@lukewagner lukewagner deleted the update-load-store branch September 25, 2015 15:49
eqrion pushed a commit to eqrion/wasm-spec that referenced this pull request Jul 18, 2019
…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.
eqrion pushed a commit to eqrion/wasm-spec that referenced this pull request Jul 18, 2019
… (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.
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Oct 21, 2024
* Revert "Allow cont ref to be non-null in switch (WebAssembly#85)"

This reverts commit 92cbcc5.

* Remove other unnecessary `null?` in instruction typing
rossberg pushed a commit that referenced this pull request Nov 6, 2024
* Rework IndexValueToU64 to allow more inputs to BigInts

* Address #86 feedback
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