Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Unified Diff: src/objects.h

Issue 2799863002: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor (Closed)
Patch Set: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d5461a7fd49fce8b4ab6d930171409a94fa50012..f922aab03c49805fcff77f1118f37e02dcdb7955 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5713,11 +5713,16 @@ class Script: public Struct {
V(WeakSet.prototype, delete, WeakSetDelete) \
V(WeakSet.prototype, has, WeakSetHas)
-#define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
- V(Atomics, load, AtomicsLoad) \
- V(Atomics, store, AtomicsStore) \
- V(Atomics, exchange, AtomicsExchange) \
- V(Atomics, compareExchange, AtomicsCompareExchange)
+#define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
+ V(Atomics, load, AtomicsLoad) \
+ V(Atomics, store, AtomicsStore) \
+ V(Atomics, exchange, AtomicsExchange) \
+ V(Atomics, compareExchange, AtomicsCompareExchange) \
+ V(Atomics, add, AtomicsAdd) \
+ V(Atomics, sub, AtomicsSub) \
+ V(Atomics, and, AtomicsAnd) \
+ V(Atomics, or, AtomicsOr) \
+ V(Atomics, xor, AtomicsXor)
enum BuiltinFunctionId {
kArrayCode,

Powered by Google App Engine
This is Rietveld 408576698