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

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

Issue 422063005: Contribution of PowerPC port. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-upload - catch up to 8/19 level Created 6 years, 3 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 | Annotate | Revision Log
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #if defined(THREAD_SANITIZER) 137 #if defined(THREAD_SANITIZER)
138 #include "src/base/atomicops_internals_tsan.h" 138 #include "src/base/atomicops_internals_tsan.h"
139 #elif defined(_MSC_VER) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) 139 #elif defined(_MSC_VER) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
140 #include "src/base/atomicops_internals_x86_msvc.h" 140 #include "src/base/atomicops_internals_x86_msvc.h"
141 #elif defined(__APPLE__) 141 #elif defined(__APPLE__)
142 #include "src/base/atomicops_internals_mac.h" 142 #include "src/base/atomicops_internals_mac.h"
143 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM64 143 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM64
144 #include "src/base/atomicops_internals_arm64_gcc.h" 144 #include "src/base/atomicops_internals_arm64_gcc.h"
145 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM 145 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM
146 #include "src/base/atomicops_internals_arm_gcc.h" 146 #include "src/base/atomicops_internals_arm_gcc.h"
147 #elif defined(__GNUC__) && V8_HOST_ARCH_PPC
148 #include "src/base/atomicops_internals_ppc_gcc.h"
147 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64) 149 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
148 #include "src/base/atomicops_internals_x86_gcc.h" 150 #include "src/base/atomicops_internals_x86_gcc.h"
149 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS 151 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS
150 #include "src/base/atomicops_internals_mips_gcc.h" 152 #include "src/base/atomicops_internals_mips_gcc.h"
151 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS64 153 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS64
152 #include "src/base/atomicops_internals_mips64_gcc.h" 154 #include "src/base/atomicops_internals_mips64_gcc.h"
153 #else 155 #else
154 #error "Atomic operations are not supported on your platform" 156 #error "Atomic operations are not supported on your platform"
155 #endif 157 #endif
156 158
157 // On some platforms we need additional declarations to make 159 // On some platforms we need additional declarations to make
158 // AtomicWord compatible with our other Atomic* types. 160 // AtomicWord compatible with our other Atomic* types.
159 #if defined(__APPLE__) || defined(__OpenBSD__) 161 #if defined(__APPLE__) || defined(__OpenBSD__)
160 #include "src/base/atomicops_internals_atomicword_compat.h" 162 #include "src/base/atomicops_internals_atomicword_compat.h"
161 #endif 163 #endif
162 164
163 #endif // V8_BASE_ATOMICOPS_H_ 165 #endif // V8_BASE_ATOMICOPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698