Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: src/base/atomicops.h

Issue 1601223003: S390: Add platform specific atomic ops impl (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update header #define macro for consistency Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | src/base/atomicops_internals_s390_gcc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM 150 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM
151 #include "src/base/atomicops_internals_arm_gcc.h" 151 #include "src/base/atomicops_internals_arm_gcc.h"
152 #elif defined(__GNUC__) && V8_HOST_ARCH_PPC 152 #elif defined(__GNUC__) && V8_HOST_ARCH_PPC
153 #include "src/base/atomicops_internals_ppc_gcc.h" 153 #include "src/base/atomicops_internals_ppc_gcc.h"
154 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) 154 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
155 #include "src/base/atomicops_internals_x86_gcc.h" 155 #include "src/base/atomicops_internals_x86_gcc.h"
156 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS 156 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS
157 #include "src/base/atomicops_internals_mips_gcc.h" 157 #include "src/base/atomicops_internals_mips_gcc.h"
158 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS64 158 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS64
159 #include "src/base/atomicops_internals_mips64_gcc.h" 159 #include "src/base/atomicops_internals_mips64_gcc.h"
160 #elif defined(__GNUC__) && V8_HOST_ARCH_S390
161 #include "src/base/atomicops_internals_s390_gcc.h"
160 #else 162 #else
161 #error "Atomic operations are not supported on your platform" 163 #error "Atomic operations are not supported on your platform"
162 #endif 164 #endif
163 165
164 // On some platforms we need additional declarations to make 166 // On some platforms we need additional declarations to make
165 // AtomicWord compatible with our other Atomic* types. 167 // AtomicWord compatible with our other Atomic* types.
166 #if defined(__APPLE__) || defined(__OpenBSD__) || defined(V8_OS_AIX) 168 #if defined(__APPLE__) || defined(__OpenBSD__) || defined(V8_OS_AIX)
167 #include "src/base/atomicops_internals_atomicword_compat.h" 169 #include "src/base/atomicops_internals_atomicword_compat.h"
168 #endif 170 #endif
169 171
170 #endif // V8_BASE_ATOMICOPS_H_ 172 #endif // V8_BASE_ATOMICOPS_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/base/atomicops_internals_s390_gcc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698