aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-v8_src_base_atomicops.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-v8_src_base_atomicops.h')
-rw-r--r--www/chromium/files/patch-v8_src_base_atomicops.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/chromium/files/patch-v8_src_base_atomicops.h b/www/chromium/files/patch-v8_src_base_atomicops.h
new file mode 100644
index 000000000000..488d69659274
--- /dev/null
+++ b/www/chromium/files/patch-v8_src_base_atomicops.h
@@ -0,0 +1,33 @@
+--- v8/src/base/atomicops.h.orig 2022-02-07 13:39:41 UTC
++++ v8/src/base/atomicops.h
+@@ -57,10 +57,10 @@ using Atomic64 = SbAtomic64;
+ using Atomic8 = char;
+ using Atomic16 = int16_t;
+ using Atomic32 = int32_t;
+-#if defined(V8_HOST_ARCH_64_BIT)
++#if defined(V8_HOST_ARCH_64_BIT) || defined(V8_OS_OPENBSD)
+ // We need to be able to go between Atomic64 and AtomicWord implicitly. This
+ // means Atomic64 and AtomicWord should be the same type on 64-bit.
+-#if defined(__ILP32__)
++#if defined(__ILP32__) && !defined(V8_OS_OPENBSD)
+ using Atomic64 = int64_t;
+ #else
+ using Atomic64 = intptr_t;
+@@ -241,7 +241,7 @@ inline Atomic32 Acquire_Load(volatile const Atomic32*
+ std::memory_order_acquire);
+ }
+
+-#if defined(V8_HOST_ARCH_64_BIT)
++#if defined(V8_HOST_ARCH_64_BIT) || defined(V8_OS_OPENBSD)
+
+ inline Atomic64 Relaxed_CompareAndSwap(volatile Atomic64* ptr,
+ Atomic64 old_value, Atomic64 new_value) {
+@@ -441,7 +441,7 @@ inline int Relaxed_Memcmp(volatile const Atomic8* s1,
+
+ // On some platforms we need additional declarations to make
+ // AtomicWord compatible with our other Atomic* types.
+-#if defined(V8_OS_MACOSX) || defined(V8_OS_OPENBSD) || defined(V8_OS_AIX)
++#if defined(V8_OS_MACOSX) || defined(V8_OS_AIX)
+ #include "src/base/atomicops_internals_atomicword_compat.h"
+ #endif
+