Bug 1210399 - IonMonkey: MIPS: Safe for races. r=lth

---
 .../jit/mips-shared/AtomicOperations-mips-shared.h | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
This commit is contained in:
Heiher 2015-10-02 06:33:31 +08:00
parent ca839dd4e2
commit 6d7f567093

View File

@ -154,6 +154,32 @@ js::jit::AtomicOperations::fetchXorSeqCst(T* addr, T val)
# endif
}
template<typename T>
inline T
js::jit::AtomicOperations::loadSafeWhenRacy(T* addr)
{
return *addr; // FIXME (1208663): not yet safe
}
template<typename T>
inline void
js::jit::AtomicOperations::storeSafeWhenRacy(T* addr, T val)
{
*addr = val; // FIXME (1208663): not yet safe
}
inline void
js::jit::AtomicOperations::memcpySafeWhenRacy(void* dest, const void* src, size_t nbytes)
{
::memcpy(dest, src, nbytes); // FIXME (1208663): not yet safe
}
inline void
js::jit::AtomicOperations::memmoveSafeWhenRacy(void* dest, const void* src, size_t nbytes)
{
::memmove(dest, src, nbytes); // FIXME (1208663): not yet safe
}
template<typename T>
inline T
js::jit::AtomicOperations::exchangeSeqCst(T* addr, T val)