From cb0b31a2d185f18662814c9f3c9158b2eea74760 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 27 Aug 2019 16:40:59 -0700 Subject: Add atomic.fence instruction (#2307) This adds `atomic.fence` instruction: https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#fence-operator This also fix bugs in `atomic.wait` and `atomic.notify` instructions in binaryen.js and adds tests for them. --- scripts/gen-s-parser.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/gen-s-parser.py') diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py index d6653e112..29f822f50 100755 --- a/scripts/gen-s-parser.py +++ b/scripts/gen-s-parser.py @@ -211,6 +211,7 @@ instructions = [ ("atomic.notify", "makeAtomicNotify(s)"), ("i32.atomic.wait", "makeAtomicWait(s, i32)"), ("i64.atomic.wait", "makeAtomicWait(s, i64)"), + ("atomic.fence", "makeAtomicFence(s)"), ("i32.atomic.load8_u", "makeLoad(s, i32, /*isAtomic=*/true)"), ("i32.atomic.load16_u", "makeLoad(s, i32, /*isAtomic=*/true)"), ("i32.atomic.load", "makeLoad(s, i32, /*isAtomic=*/true)"), -- cgit v1.2.3