diff options
Diffstat (limited to 'chromium/v8/src/runtime/runtime-atomics.cc')
-rw-r--r-- | chromium/v8/src/runtime/runtime-atomics.cc | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/chromium/v8/src/runtime/runtime-atomics.cc b/chromium/v8/src/runtime/runtime-atomics.cc index 6ea4e04d637..32a13531775 100644 --- a/chromium/v8/src/runtime/runtime-atomics.cc +++ b/chromium/v8/src/runtime/runtime-atomics.cc @@ -24,7 +24,44 @@ namespace internal { namespace { -#if V8_CC_GNU +#if defined(V8_OS_STARBOARD) + +template <typename T> +inline T ExchangeSeqCst(T* p, T value) { + UNIMPLEMENTED(); +} + +template <typename T> +inline T CompareExchangeSeqCst(T* p, T oldval, T newval) { + UNIMPLEMENTED(); +} + +template <typename T> +inline T AddSeqCst(T* p, T value) { + UNIMPLEMENTED(); +} + +template <typename T> +inline T SubSeqCst(T* p, T value) { + UNIMPLEMENTED(); +} + +template <typename T> +inline T AndSeqCst(T* p, T value) { + UNIMPLEMENTED(); +} + +template <typename T> +inline T OrSeqCst(T* p, T value) { + UNIMPLEMENTED(); +} + +template <typename T> +inline T XorSeqCst(T* p, T value) { + UNIMPLEMENTED(); +} + +#elif V8_CC_GNU // GCC/Clang helpfully warn us that using 64-bit atomics on 32-bit platforms // can be slow. Good to know, but we don't have a choice. |