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

Use int64 for addresses and sizes, isolate BigArray int limitation #108

Merged
merged 4 commits into from
Oct 7, 2015

Conversation

lukewagner
Copy link
Member

This PR is intended to address some of the issues raised in #80 by using int64 throughout spec/. The BigArray int limitation is, as suggested in #80, addressed by modeling creation of an array bigger than max_int as an Out_of_memory trap.

@@ -4,11 +4,9 @@

type memory
type t = memory
type address = int
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specific reason to remove these instead of making them synonyms for int64? They have some documentation value.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I removed was that, before, we half treated these as opaque types and, with this PR, we fully assume they are int64s, so it seemed like an unnecessary abstraction. But I wasn't considering the documentation value; I can add them back.

@lukewagner
Copy link
Member Author

Updated for comment and rebased.

@lukewagner
Copy link
Member Author

@rossberg-chromium lgty?

@rossberg
Copy link
Member

rossberg commented Oct 7, 2015

LGTM modulo nits

@lukewagner
Copy link
Member Author

Merging with nits fixed.

lukewagner added a commit that referenced this pull request Oct 7, 2015
Use int64 for addresses and sizes, isolate BigArray int limitation
@lukewagner lukewagner merged commit 91d551b into master Oct 7, 2015
@lukewagner lukewagner deleted the mem-addr-type branch October 7, 2015 17:39
alexcrichton pushed a commit to alexcrichton/spec that referenced this pull request Nov 18, 2019
* Update conversion op names

This renaming was decided on in
WebAssembly#884.
eqrion pushed a commit to eqrion/wasm-spec that referenced this pull request Nov 25, 2019
* Change element segment encoding

* Change table index letter
Connicpu pushed a commit to Connicpu/wasm-spec that referenced this pull request May 11, 2020
Also add a note that we expect engines to trap when there are 4 billion
waiters.

See issue WebAssembly#108.
rossberg pushed a commit that referenced this pull request Feb 11, 2021
Remove type annotation on ref.is_null in overview
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Nov 13, 2023
Fix a few minor issues in local validation rules
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