[webkit-reviews] review granted: [Bug 218954] [JSC] Add wasm atomics instructions : [Attachment 414795] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 23 09:27:33 PST 2020

Filip Pizlo <fpizlo at apple.com> has granted Yusuke Suzuki <ysuzuki at apple.com>'s
request for review:
Bug 218954: [JSC] Add wasm atomics instructions

Attachment 414795: Patch


--- Comment #13 from Filip Pizlo <fpizlo at apple.com> ---
Comment on attachment 414795
  --> https://bugs.webkit.org/attachment.cgi?id=414795

View in context: https://bugs.webkit.org/attachment.cgi?id=414795&action=review

Super nice!

> Source/JavaScriptCore/b3/B3Width.h:116
> +    return 1U << static_cast<unsigned>(width);

Slight preference for this being a switch.  It's clearer and less sensitive to
the enum being messed with.

> Source/JavaScriptCore/b3/testb3_8.cpp:593
> +	       // AtomicXchg can be lowered to "xchg" without "lock", and this
is OK since "lock" signal is asserted for "xchg" by default.

Oh really?  I thought that xchg only created a fence by default, but not the

More information about the webkit-reviews mailing list