Skip to content

Rename atomic.notify and *.atomic.wait - #3353

Merged
aheejin merged 4 commits into
WebAssembly:masterfrom
aheejin:memory_atomic
Nov 13, 2020
Merged

Rename atomic.notify and *.atomic.wait#3353
aheejin merged 4 commits into
WebAssembly:masterfrom
aheejin:memory_atomic

Conversation

@aheejin

@aheejin aheejin commented Nov 13, 2020

Copy link
Copy Markdown
Member
  • atomic.notify -> memory.atomic.notify
  • i32.atomic.wait -> memory.atomic.wait32
  • i64.atomic.wait -> memory.atomic.wait64

See WebAssembly/threads#149.

This renames instruction name printing but not the internal data
structure names, such as AtomicNotify, which are not always the same
as printed instruction names anyway. This also does not modify C API.
But this fixes interface functions in binaryen.js because it seems
binaryen.js's interface functions all follow the corresponding
instruction names.

- atomic.notify -> memory.atomic.notify
- i32.atomic.wait -> memory.atomic.wait32
- i64.atomic.wait -> memory.atomic.wait64

See WebAssembly/threads#149.

This renames instruction name printing but not the internal data
structure names, such as `AtomicNotify`, which are not always the same
as printed instruction names anyway. This also does not modify C API.
But this fixes interface functions in binaryen.js because it seems
binaryen.js's interface functions all follow the corresponding
instruction names.
@aheejin
aheejin requested review from kripken and tlively November 13, 2020 19:15

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please mention the JS API change in CHANGELOG.md.

@dcodeIO , any concerns about the JS API change?

@dcodeIO

dcodeIO commented Nov 13, 2020

Copy link
Copy Markdown
Contributor

LGTM, thanks for the heads up :)

@aheejin
aheejin merged commit 75e6120 into WebAssembly:master Nov 13, 2020
@aheejin
aheejin deleted the memory_atomic branch November 13, 2020 23:54
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