|
33 | 33 | // - libstdc++: captures bits/c++config.h for __GLIBCXX__ |
34 | 34 | #include <cstddef> |
35 | 35 |
|
36 | | -#include "base-export.h" |
37 | | -#include "build_config.h" |
| 36 | +#include "src/base/base-export.h" |
| 37 | +#include "src/base/build_config.h" |
38 | 38 |
|
39 | 39 | namespace v8 { |
40 | 40 | namespace base { |
41 | 41 |
|
42 | 42 | typedef char Atomic8; |
| 43 | +typedef int16_t Atomic16; |
43 | 44 | typedef int32_t Atomic32; |
44 | 45 | #if defined(V8_HOST_ARCH_64_BIT) |
45 | 46 | // We need to be able to go between Atomic64 and AtomicWord implicitly. This |
@@ -97,10 +98,12 @@ Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, |
97 | 98 |
|
98 | 99 | void SeqCst_MemoryFence(); |
99 | 100 | void Relaxed_Store(volatile Atomic8* ptr, Atomic8 value); |
| 101 | +void Relaxed_Store(volatile Atomic16* ptr, Atomic16 value); |
100 | 102 | void Relaxed_Store(volatile Atomic32* ptr, Atomic32 value); |
101 | 103 | void Release_Store(volatile Atomic32* ptr, Atomic32 value); |
102 | 104 |
|
103 | 105 | Atomic8 Relaxed_Load(volatile const Atomic8* ptr); |
| 106 | +Atomic16 Relaxed_Load(volatile const Atomic16* ptr); |
104 | 107 | Atomic32 Relaxed_Load(volatile const Atomic32* ptr); |
105 | 108 | Atomic32 Acquire_Load(volatile const Atomic32* ptr); |
106 | 109 |
|
@@ -132,13 +135,13 @@ Atomic64 Acquire_Load(volatile const Atomic64* ptr); |
132 | 135 | #else |
133 | 136 | // TODO(ulan): Switch to std version after performance regression with Wheezy |
134 | 137 | // sysroot is no longer relevant. Debian Wheezy LTS ends on 31st of May 2018. |
135 | | -#include "atomicops_internals_portable.h" |
| 138 | +#include "src/base/atomicops_internals_portable.h" |
136 | 139 | #endif |
137 | 140 |
|
138 | 141 | // On some platforms we need additional declarations to make |
139 | 142 | // AtomicWord compatible with our other Atomic* types. |
140 | 143 | #if defined(V8_OS_MACOSX) || defined(V8_OS_OPENBSD) || defined(V8_OS_AIX) |
141 | | -#include "atomicops_internals_atomicword_compat.h" |
| 144 | +#include "src/base/atomicops_internals_atomicword_compat.h" |
142 | 145 | #endif |
143 | 146 |
|
144 | 147 | #endif // V8_BASE_ATOMICOPS_H_ |
0 commit comments