summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-03-30 21:29:41 +0900
committerGitHub <noreply@github.com>2019-03-30 21:29:41 +0900
commit812bce93447756891e311334bff413e3b79ed2c7 (patch)
treec7384776132f2e46c5d2697897b55e593fa38f12 /src/wasm/wasm-s-parser.cpp
parent3e2529386d221841137bd558fab71c91b5e00f1b (diff)
downloadbinaryen-812bce93447756891e311334bff413e3b79ed2c7.tar.gz
binaryen-812bce93447756891e311334bff413e3b79ed2c7.tar.bz2
binaryen-812bce93447756891e311334bff413e3b79ed2c7.zip
Rename atomic wait/notify instructions (#1972)
This renames the following: - `i32.wait` -> `i32.atomic.wait` - `i64.wait` -> `i64.atomic.wait` - `wake` -> `atomic.notify` to match the spec.
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
-rw-r--r--src/wasm/wasm-s-parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp
index 1067264f7..ddda991cd 100644
--- a/src/wasm/wasm-s-parser.cpp
+++ b/src/wasm/wasm-s-parser.cpp
@@ -1071,11 +1071,11 @@ Expression* SExpressionWasmBuilder::makeAtomicWait(Element& s, Type type) {
return ret;
}
-Expression* SExpressionWasmBuilder::makeAtomicWake(Element& s) {
- auto ret = allocator.alloc<AtomicWake>();
+Expression* SExpressionWasmBuilder::makeAtomicNotify(Element& s) {
+ auto ret = allocator.alloc<AtomicNotify>();
ret->type = i32;
ret->ptr = parseExpression(s[1]);
- ret->wakeCount = parseExpression(s[2]);
+ ret->notifyCount = parseExpression(s[2]);
ret->finalize();
return ret;
}