Skip to content

Remove page_size#159

Merged
sunfishcode merged 5 commits intoWebAssembly:masterfrom
pjuftring:remove_page-size
Nov 11, 2015
Merged

Remove page_size#159
sunfishcode merged 5 commits intoWebAssembly:masterfrom
pjuftring:remove_page-size

Conversation

@pjuftring
Copy link
Contributor

Removes every trace of existence of page_size from the source, the
testfiles and README.md
WebAssembly/design#442

Removes every trace of existence of page_size from the source, the
testfiles and README.md
WebAssembly/design#442
Copy link
Member

Choose a reason for hiding this comment

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

Given that this is no longer a parameter, can you instead remove this definition completely? It should also vanish from the host_params type in the eval module.

@sunfishcode
Copy link
Member

Keeping page_size as a named variable improves the "specyness" of the code, and makes it easier to find all the places in the spec that case about page sizes. I would prefer to leave it in.

@rossberg
Copy link
Member

rossberg commented Nov 5, 2015

Fair enough. The only remaining occurrence is in the evaluation of GrowMemory. I suggest exporting page_size as a constant from the memory module and using that there.

…emove_page-size

Conflicts:
	ml-proto/host/lexer.mll
	ml-proto/host/parser.mly
To keep things more "speccy", page_size is added to the memory module
and is used by the GrowMemory instruction.
…emove_page-size

Conflicts:
	ml-proto/host/lexer.mll
	ml-proto/host/parser.mly
@sunfishcode
Copy link
Member

lgtm

@rossberg
Copy link
Member

LGTM

sunfishcode added a commit that referenced this pull request Nov 11, 2015
@sunfishcode sunfishcode merged commit 73c87ac into WebAssembly:master Nov 11, 2015
@pjuftring pjuftring deleted the remove_page-size branch November 13, 2015 19:00
Connicpu pushed a commit to Connicpu/wasm-spec that referenced this pull request May 11, 2020
ngzhian pushed a commit to ngzhian/spec that referenced this pull request Nov 4, 2021
alexcrichton pushed a commit to WebAssembly/wide-arithmetic that referenced this pull request Sep 19, 2025
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.

3 participants