OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // This file is an internal atomic implementation, use atomicops.h instead. | 5 // This file is an internal atomic implementation, use atomicops.h instead. |
6 // | 6 // |
7 | 7 |
8 #ifndef V8_BASE_ATOMICOPS_INTERNALS_PPC_H_ | 8 #ifndef V8_BASE_ATOMICOPS_INTERNALS_PPC_H_ |
9 #define V8_BASE_ATOMICOPS_INTERNALS_PPC_H_ | 9 #define V8_BASE_ATOMICOPS_INTERNALS_PPC_H_ |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 MemoryBarrier(); | 155 MemoryBarrier(); |
156 return value; | 156 return value; |
157 } | 157 } |
158 | 158 |
159 inline Atomic64 Release_Load(volatile const Atomic64* ptr) { | 159 inline Atomic64 Release_Load(volatile const Atomic64* ptr) { |
160 MemoryBarrier(); | 160 MemoryBarrier(); |
161 return *ptr; | 161 return *ptr; |
162 } | 162 } |
163 | 163 |
164 #endif | 164 #endif |
165 } | 165 } // namespace base |
166 } // namespace v8::base | 166 } // namespace v8 |
167 | 167 |
168 #endif // V8_BASE_ATOMICOPS_INTERNALS_PPC_GCC_H_ | 168 #endif // V8_BASE_ATOMICOPS_INTERNALS_PPC_GCC_H_ |
OLD | NEW |