Bug 1329194 - js:jit: Use PowerPC atomic operations on SH. r=jandem
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Wed, 11 Jan 2017 15:23:20 +0100
changeset 330250 e2860876fc43daab36c5dbc920dcf4d298923de2
parent 330249 e62e2c17d75be07bc9f5e96f1c8135e976591b5b
child 330251 aa3e49299a3aa5cb0db570532e3df9e75d30c2d1
child 330284 cdc8e1a140e298a55cff0eedb053bd0155b360f7
push id31233
push userphilringnalda@gmail.com
push dateFri, 20 Jan 2017 06:05:15 +0000
treeherdermozilla-central@aa3e49299a3a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs1329194
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 1329194 - js:jit: Use PowerPC atomic operations on SH. r=jandem
js/src/jit/AtomicOperations.h
--- a/js/src/jit/AtomicOperations.h
+++ b/js/src/jit/AtomicOperations.h
@@ -340,16 +340,18 @@ AtomicOperations::isLockfree(int32_t siz
 # 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"
+#elif defined(__sh__)
+#  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
 # error "Atomic operations must be defined for this platform"
 #endif