diff options
author | Benjamin Poulain <benjamin@webkit.org> | 2013-07-01 16:15:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-01 18:17:47 +0200 |
commit | 801fc96bdc0e1b16cb137901cd2c11ef37ae4337 (patch) | |
tree | e29407009f9d5740e33b08bcc0032e80b1d9c78e /Source/JavaScriptCore/API/JSWeakObjectMapRefInternal.h | |
parent | 0baf197abc26a0833ac331b4beb362d5148e485b (diff) | |
download | qtwebkit-801fc96bdc0e1b16cb137901cd2c11ef37ae4337.tar.gz |
Use GCC's implementation of atomicIncrement/Decrement on Mac
https://bugs.webkit.org/show_bug.cgi?id=106976
Reviewed by Filip Pizlo.
* wtf/Atomics.h:
GCC and LLVM have builtin for atomic ADD and SUB: __sync_add_and_fetch,
__sync_sub_and_fetch.
Using them let the compiler just generate the atomic operations inline
instead of generating a function call to LibC. It also simplify the
code a bit.
Change-Id: I4615faede4a9f2fc2d8415bd526db9dcb70a24ce
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/API/JSWeakObjectMapRefInternal.h')
0 files changed, 0 insertions, 0 deletions