From 812bce93447756891e311334bff413e3b79ed2c7 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Sat, 30 Mar 2019 21:29:41 +0900 Subject: 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. --- src/wasm.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/wasm.h') 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 { void finalize(); }; -class AtomicWake : public SpecificExpression { +class AtomicNotify : public SpecificExpression { public: - AtomicWake() = default; - AtomicWake(MixedArena& allocator) : AtomicWake() {} + AtomicNotify() = default; + AtomicNotify(MixedArena& allocator) : AtomicNotify() {} Address offset; Expression* ptr; - Expression* wakeCount; + Expression* notifyCount; void finalize(); }; -- cgit v1.2.3