diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-03-30 21:29:41 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-30 21:29:41 +0900 |
commit | 812bce93447756891e311334bff413e3b79ed2c7 (patch) | |
tree | c7384776132f2e46c5d2697897b55e593fa38f12 /src/wasm/wasm.cpp | |
parent | 3e2529386d221841137bd558fab71c91b5e00f1b (diff) | |
download | binaryen-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.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index c99bb0994..e135ba750 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -105,7 +105,7 @@ const char* getExpressionName(Expression* curr) { case Expression::Id::AtomicCmpxchgId: return "atomic_cmpxchg"; case Expression::Id::AtomicRMWId: return "atomic_rmw"; case Expression::Id::AtomicWaitId: return "atomic_wait"; - case Expression::Id::AtomicWakeId: return "atomic_wake"; + case Expression::Id::AtomicNotifyId: return "atomic_notify"; case Expression::Id::SIMDExtractId: return "simd_extract"; case Expression::Id::SIMDReplaceId: return "simd_replace"; case Expression::Id::SIMDShuffleId: return "simd_shuffle"; @@ -420,9 +420,9 @@ void AtomicWait::finalize() { } } -void AtomicWake::finalize() { +void AtomicNotify::finalize() { type = i32; - if (ptr->type == unreachable || wakeCount->type == unreachable) { + if (ptr->type == unreachable || notifyCount->type == unreachable) { type = unreachable; } } |