30 #ifndef V8_ATOMICOPS_INTERNALS_MIPS_GCC_H_
31 #define V8_ATOMICOPS_INTERNALS_MIPS_GCC_H_
50 __asm__ __volatile__(
".set push\n"
61 :
"=&r" (prev),
"=m" (*ptr),
"=&r" (tmp)
62 :
"Ir" (old_value),
"r" (new_value),
"m" (*ptr)
72 __asm__ __volatile__(
".set push\n"
81 :
"=&r" (temp),
"=&r" (old),
"=m" (*ptr)
82 :
"r" (new_value),
"m" (*ptr)
94 __asm__ __volatile__(
".set push\n"
103 :
"=&r" (temp),
"=&r" (temp2),
"=m" (*ptr)
104 :
"Ir" (increment),
"m" (*ptr)
144 __asm__ __volatile__(
"sync" : : :
"memory");
174 #endif // V8_ATOMICOPS_INTERNALS_MIPS_GCC_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)