| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // The routines exported by this module are subtle. If you use them, even if | 5 // The routines exported by this module are subtle. If you use them, even if |
| 6 // you get the code right, it will depend on careful reasoning about atomicity | 6 // you get the code right, it will depend on careful reasoning about atomicity |
| 7 // and memory ordering; it will be less readable, and harder to maintain. If | 7 // and memory ordering; it will be less readable, and harder to maintain. If |
| 8 // you plan to use these routines, you should have a good reason, such as solid | 8 // you plan to use these routines, you should have a good reason, such as solid |
| 9 // evidence that performance would otherwise suffer, or there being no | 9 // evidence that performance would otherwise suffer, or there being no |
| 10 // alternative. You should assume only properties explicitly guaranteed by the | 10 // alternative. You should assume only properties explicitly guaranteed by the |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS | 155 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS |
| 156 #include "src/base/atomicops_internals_mips_gcc.h" | 156 #include "src/base/atomicops_internals_mips_gcc.h" |
| 157 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS64 | 157 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS64 |
| 158 #include "src/base/atomicops_internals_mips64_gcc.h" | 158 #include "src/base/atomicops_internals_mips64_gcc.h" |
| 159 #else | 159 #else |
| 160 #error "Atomic operations are not supported on your platform" | 160 #error "Atomic operations are not supported on your platform" |
| 161 #endif | 161 #endif |
| 162 | 162 |
| 163 // On some platforms we need additional declarations to make | 163 // On some platforms we need additional declarations to make |
| 164 // AtomicWord compatible with our other Atomic* types. | 164 // AtomicWord compatible with our other Atomic* types. |
| 165 #if defined(__APPLE__) || defined(__OpenBSD__) | 165 #if defined(__APPLE__) || defined(__OpenBSD__) || defined(V8_OS_AIX) |
| 166 #include "src/base/atomicops_internals_atomicword_compat.h" | 166 #include "src/base/atomicops_internals_atomicword_compat.h" |
| 167 #endif | 167 #endif |
| 168 | 168 |
| 169 #endif // V8_BASE_ATOMICOPS_H_ | 169 #endif // V8_BASE_ATOMICOPS_H_ |
| OLD | NEW |