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

Unified Diff: src/compiler/machine-operator.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/compiler/machine-operator.h
diff --git a/src/compiler/machine-operator.h b/src/compiler/machine-operator.h
index 8ea05fb53f084db88cd867dd890465bdc4b34ced..d0ce48f05228821cf01a3a426191673d203a54f2 100644
--- a/src/compiler/machine-operator.h
+++ b/src/compiler/machine-operator.h
@@ -97,9 +97,7 @@ int StackSlotSizeOf(Operator const* op);
MachineRepresentation AtomicStoreRepresentationOf(Operator const* op);
-MachineType AtomicExchangeRepresentationOf(Operator const* op);
-
-MachineType AtomicCompareExchangeRepresentationOf(Operator const* op);
+MachineType AtomicOpRepresentationOf(Operator const* op);
// Interface for building machine-level operators. These operators are
// machine-level but machine-independent and thus define a language suitable
@@ -615,6 +613,16 @@ class V8_EXPORT_PRIVATE MachineOperatorBuilder final
const Operator* AtomicExchange(MachineType rep);
// atomic-compare-exchange [base + index], old_value, new_value
const Operator* AtomicCompareExchange(MachineType rep);
+ // atomic-add [base + index], value
+ const Operator* AtomicAdd(MachineType rep);
+ // atomic-sub [base + index], value
+ const Operator* AtomicSub(MachineType rep);
+ // atomic-and [base + index], value
+ const Operator* AtomicAnd(MachineType rep);
+ // atomic-or [base + index], value
+ const Operator* AtomicOr(MachineType rep);
+ // atomic-xor [base + index], value
+ const Operator* AtomicXor(MachineType rep);
// Target machine word-size assumed by this builder.
bool Is32() const { return word() == MachineRepresentation::kWord32; }

Powered by Google App Engine
This is Rietveld 408576698