| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 } } // namespace v8::internal | 154 } } // namespace v8::internal |
| 155 | 155 |
| 156 // Include our platform specific implementation. | 156 // Include our platform specific implementation. |
| 157 #if defined(THREAD_SANITIZER) | 157 #if defined(THREAD_SANITIZER) |
| 158 #include "atomicops_internals_tsan.h" | 158 #include "atomicops_internals_tsan.h" |
| 159 #elif defined(_MSC_VER) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) | 159 #elif defined(_MSC_VER) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) |
| 160 #include "atomicops_internals_x86_msvc.h" | 160 #include "atomicops_internals_x86_msvc.h" |
| 161 #elif defined(__APPLE__) | 161 #elif defined(__APPLE__) |
| 162 #include "atomicops_internals_mac.h" | 162 #include "atomicops_internals_mac.h" |
| 163 #elif defined(__GNUC__) && V8_HOST_ARCH_A64 | 163 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM64 |
| 164 #include "atomicops_internals_a64_gcc.h" | 164 #include "atomicops_internals_arm64_gcc.h" |
| 165 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM | 165 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM |
| 166 #include "atomicops_internals_arm_gcc.h" | 166 #include "atomicops_internals_arm_gcc.h" |
| 167 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) | 167 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) |
| 168 #include "atomicops_internals_x86_gcc.h" | 168 #include "atomicops_internals_x86_gcc.h" |
| 169 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS | 169 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS |
| 170 #include "atomicops_internals_mips_gcc.h" | 170 #include "atomicops_internals_mips_gcc.h" |
| 171 #else | 171 #else |
| 172 #error "Atomic operations are not supported on your platform" | 172 #error "Atomic operations are not supported on your platform" |
| 173 #endif | 173 #endif |
| 174 | 174 |
| 175 // On some platforms we need additional declarations to make | 175 // On some platforms we need additional declarations to make |
| 176 // AtomicWord compatible with our other Atomic* types. | 176 // AtomicWord compatible with our other Atomic* types. |
| 177 #if defined(__APPLE__) || defined(__OpenBSD__) | 177 #if defined(__APPLE__) || defined(__OpenBSD__) |
| 178 #include "atomicops_internals_atomicword_compat.h" | 178 #include "atomicops_internals_atomicword_compat.h" |
| 179 #endif | 179 #endif |
| 180 | 180 |
| 181 #endif // V8_ATOMICOPS_H_ | 181 #endif // V8_ATOMICOPS_H_ |
| OLD | NEW |