summaryrefslogtreecommitdiff
path: root/src/wasm-builder.h
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-builder.h
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-builder.h')
-rw-r--r--src/wasm-builder.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h
index eee4e3b79..8c50ff2dc 100644
--- a/src/wasm-builder.h
+++ b/src/wasm-builder.h
@@ -247,13 +247,13 @@ public:
wait->finalize();
return wait;
}
- AtomicWake* makeAtomicWake(Expression* ptr, Expression* wakeCount, Address offset) {
- auto* wake = allocator.alloc<AtomicWake>();
- wake->offset = offset;
- wake->ptr = ptr;
- wake->wakeCount = wakeCount;
- wake->finalize();
- return wake;
+ AtomicNotify* makeAtomicNotify(Expression* ptr, Expression* notifyCount, Address offset) {
+ auto* notify = allocator.alloc<AtomicNotify>();
+ notify->offset = offset;
+ notify->ptr = ptr;
+ notify->notifyCount = notifyCount;
+ notify->finalize();
+ return notify;
}
Store* makeStore(unsigned bytes, uint32_t offset, unsigned align, Expression *ptr, Expression *value, Type type) {
auto* ret = allocator.alloc<Store>();