summaryrefslogtreecommitdiff
path: root/test/wasm2js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-11-13 15:54:08 -0800
committerGitHub <noreply@github.com>2020-11-13 15:54:08 -0800
commit75e61204b67e921464af14fd13ff768d88755e8c (patch)
tree969ddb2e4e2870fef662375914f16fc50713cd4c /test/wasm2js
parentcc2b3e4175a6edc53487eec06da13b39eb66716b (diff)
downloadbinaryen-75e61204b67e921464af14fd13ff768d88755e8c.tar.gz
binaryen-75e61204b67e921464af14fd13ff768d88755e8c.tar.bz2
binaryen-75e61204b67e921464af14fd13ff768d88755e8c.zip
Rename atomic.notify and *.atomic.wait (#3353)
- 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.
Diffstat (limited to 'test/wasm2js')
-rw-r--r--test/wasm2js/atomics_32.wast6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/wasm2js/atomics_32.wast b/test/wasm2js/atomics_32.wast
index 2c7ba9a44..e1b49d852 100644
--- a/test/wasm2js/atomics_32.wast
+++ b/test/wasm2js/atomics_32.wast
@@ -12,11 +12,11 @@
(local.set $x (i32.atomic.load16_u (i32.const 1028)))
(local.set $x (i32.atomic.load (i32.const 1028)))
(i32.atomic.store (i32.const 100) (i32.const 200))
- (local.set $x (i32.atomic.wait (i32.const 4) (i32.const 8) (i64.const -1)))
+ (local.set $x (memory.atomic.wait32 (i32.const 4) (i32.const 8) (i64.const -1)))
(memory.init 0 (i32.const 512) (i32.const 0) (i32.const 4))
(memory.init 1 (i32.const 1024) (i32.const 4) (i32.const 2))
- (local.set $x (atomic.notify (i32.const 4) (i32.const 2)))
- (local.set $x (atomic.notify offset=20 (i32.const 4) (i32.const 2)))
+ (local.set $x (memory.atomic.notify (i32.const 4) (i32.const 2)))
+ (local.set $x (memory.atomic.notify offset=20 (i32.const 4) (i32.const 2)))
(local.set $x (i32.atomic.rmw.add (i32.const 8) (i32.const 12)))
(local.set $x (i32.atomic.rmw.sub (i32.const 8) (i32.const 12)))
(local.set $x (i32.atomic.rmw.and (i32.const 8) (i32.const 12)))