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

Unified Diff: src/compiler/raw-machine-assembler.h

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: rebase and move cmpxchg to builtins-sharedarraybuffer-gen.cc Created 3 years, 9 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/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index 639eddf0a7a7165aee28baac134710f2a21ec965..ac1af6a63de139679de420e24f29d82f5e2937f4 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -179,6 +179,12 @@ class V8_EXPORT_PRIVATE RawMachineAssembler {
return AddNode(machine()->AtomicExchange(rep), base, index, value);
}
+ Node* AtomicCompareExchange(MachineType rep, Node* base, Node* index,
+ Node* old_value, Node* new_value) {
+ return AddNode(machine()->AtomicCompareExchange(rep), base, index,
+ old_value, new_value);
+ }
+
// Arithmetic Operations.
Node* WordAnd(Node* a, Node* b) {
return AddNode(machine()->WordAnd(), a, b);

Powered by Google App Engine
This is Rietveld 408576698