mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ca839dd4e2
commit
6d7f567093
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user