зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1253216 - clean up the atomic ops ifdef nest. r=jorendorff
--HG-- extra : rebase_source : d3cb45edc0b495c3a8b779dc165f8a599835aa0f extra : histedit_source : 005a644c952690935bbd4c65c81c374d00edbce9
This commit is contained in:
Родитель
26a262542c
Коммит
e4518bf50d
|
@ -323,12 +323,20 @@ AtomicOperations::isLockfree(int32_t size)
|
|||
# include "jit/arm64/AtomicOperations-arm64.h"
|
||||
#elif defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_MIPS64)
|
||||
# include "jit/mips-shared/AtomicOperations-mips-shared.h"
|
||||
#elif defined(__ppc64__) || defined(__PPC64_) \
|
||||
|| defined(__ppc64le__) || defined(__PPC64LE__) \
|
||||
|| defined(__ppc__) || defined(__PPC__)
|
||||
#elif defined(__ppc__) || defined(__PPC__)
|
||||
# include "jit/none/AtomicOperations-ppc.h"
|
||||
#elif defined(JS_CODEGEN_NONE)
|
||||
# include "jit/none/AtomicOperations-none.h"
|
||||
// You can disable the JIT with --disable-ion but you must still
|
||||
// provide the atomic operations that will be used by the JS engine.
|
||||
// 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"
|
||||
# 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче