summaryrefslogtreecommitdiff
path: root/src/wasm.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.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.h')
-rw-r--r--src/wasm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wasm.h b/src/wasm.h
index ab9d7c816..12071fdb4 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -206,7 +206,7 @@ public:
AtomicRMWId,
AtomicCmpxchgId,
AtomicWaitId,
- AtomicWakeId,
+ AtomicNotifyId,
SIMDExtractId,
SIMDReplaceId,
SIMDShuffleId,
@@ -512,14 +512,14 @@ class AtomicWait : public SpecificExpression<Expression::AtomicWaitId> {
void finalize();
};
-class AtomicWake : public SpecificExpression<Expression::AtomicWakeId> {
+class AtomicNotify : public SpecificExpression<Expression::AtomicNotifyId> {
public:
- AtomicWake() = default;
- AtomicWake(MixedArena& allocator) : AtomicWake() {}
+ AtomicNotify() = default;
+ AtomicNotify(MixedArena& allocator) : AtomicNotify() {}
Address offset;
Expression* ptr;
- Expression* wakeCount;
+ Expression* notifyCount;
void finalize();
};