Bug 1326496 - js:jit: Use PowerPC atomic operations on alpha. r=jandem
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 29 Dec 2016 00:05:25 +0100
changeset 374371 f8856b75831267e929518323f32afd34bbe4bfa5
parent 374370 b9e61617c8c988a8923b87d1c3989d57d0a4a8d6
child 374372 156ce27e0e11b30f7545fd79f5488b5f16bbe54a
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1326496
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1326496 - js:jit: Use PowerPC atomic operations on alpha. r=jandem
js/src/jit/AtomicOperations.h
--- a/js/src/jit/AtomicOperations.h
+++ b/js/src/jit/AtomicOperations.h
@@ -336,16 +336,18 @@ AtomicOperations::isLockfree(int32_t siz
   // When the JIT is disabled the operations are simply safe-for-races
   // C++ realizations of atomics.  These operations cannot be written
   // in portable C++, hence the default here is to crash.  See the
   // top of the file for more guidance.
 # if defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || defined(__PPC64LE__)
 #  include "jit/none/AtomicOperations-ppc.h"
 # elif defined(__aarch64__)
 #  include "jit/arm64/AtomicOperations-arm64.h"
+# elif defined(__alpha__)
+#  include "jit/none/AtomicOperations-ppc.h"
 # elif defined(__hppa__)
 #  include "jit/none/AtomicOperations-ppc.h"
 # else
 #  include "jit/none/AtomicOperations-none.h" // These MOZ_CRASH() always
 # endif
 #elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
 # include "jit/x86-shared/AtomicOperations-x86-shared.h"
 #else