48 #ifndef V8_ATOMICOPS_H_
49 #define V8_ATOMICOPS_H_
51 #include "../include/v8.h"
54 #if defined(_WIN32) && defined(V8_HOST_ARCH_64_BIT)
67 #ifdef V8_HOST_ARCH_64_BIT
70 #if defined(__ILP32__)
71 typedef int64_t Atomic64;
73 typedef intptr_t Atomic64;
132 #ifdef V8_HOST_ARCH_64_BIT
152 #endif // V8_HOST_ARCH_64_BIT
157 #if defined(THREAD_SANITIZER)
159 #elif defined(_MSC_VER) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
161 #elif defined(__APPLE__)
163 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM64
165 #elif defined(__GNUC__) && V8_HOST_ARCH_ARM
167 #elif defined(__GNUC__) && (V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64)
169 #elif defined(__GNUC__) && V8_HOST_ARCH_MIPS
172 #error "Atomic operations are not supported on your platform"
177 #if defined(__APPLE__) || defined(__OpenBSD__)
181 #endif // V8_ATOMICOPS_H_
void Acquire_Store(volatile Atomic32 *ptr, Atomic32 value)
Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32 *ptr, Atomic32 old_value, Atomic32 new_value)
Atomic32 Release_CompareAndSwap(volatile Atomic32 *ptr, Atomic32 old_value, Atomic32 new_value)
void NoBarrier_Store(volatile Atomic32 *ptr, Atomic32 value)
Atomic32 NoBarrier_AtomicExchange(volatile Atomic32 *ptr, Atomic32 new_value)
Atomic32 Release_Load(volatile const Atomic32 *ptr)
Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32 *ptr, Atomic32 increment)
void Release_Store(volatile Atomic32 *ptr, Atomic32 value)
Atomic32 Barrier_AtomicIncrement(volatile Atomic32 *ptr, Atomic32 increment)
Atomic32 NoBarrier_Load(volatile const Atomic32 *ptr)
Atomic32 Acquire_Load(volatile const Atomic32 *ptr)
Atomic32 Acquire_CompareAndSwap(volatile Atomic32 *ptr, Atomic32 old_value, Atomic32 new_value)