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

grow_memory takes page size #260

Merged
merged 1 commit into from
Mar 21, 2016
Merged

grow_memory takes page size #260

merged 1 commit into from
Mar 21, 2016

Conversation

rossberg
Copy link
Member

To go along with WebAssembly/design#598

@lukewagner
Copy link
Member

lgtm

@sunfishcode sunfishcode modified the milestone: MVP Mar 14, 2016
@sunfishcode
Copy link
Member

lgtm

@sunfishcode
Copy link
Member

Merging, with lgtms and no objections.

sunfishcode added a commit that referenced this pull request Mar 21, 2016
@sunfishcode sunfishcode merged commit 8cc7575 into master Mar 21, 2016
@sunfishcode sunfishcode deleted the grow_memory branch March 21, 2016 22:41

(export "size_at_least" $size_at_least)
(func $size_at_least (param i32) (result i32) (i32.ge_u (memory_size) (get_local 0)))
(func $grow (param $sz i32) (result i32) (grow_memory (get_local $sz)))
Copy link
Member

Choose a reason for hiding this comment

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

AstSemantics says this should be a multiple of the page size, but this sends in values like 1 which are meant to be multiplied by it. Which is wrong?

Copy link

Choose a reason for hiding this comment

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

@kripken It looks like WebAssembly/design#598 has not been merged which updated AstSemantics. People seemed to support changing grow_memory to accept units of pages rather than bytes and there seems to be some support for also returning the new size in pages.

Copy link
Member

Choose a reason for hiding this comment

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

I see, thanks.

ngzhian added a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
…h' (WebAssembly#260)

* Adds validation algorithm case for `throw x`, adds missing x to 'catch'
* Apply suggestions from code review

Co-authored-by: Andreas Rossberg <rossberg@mpi-sws.org>
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.

4 participants