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

Unified Diff: src/compiler/code-assembler.cc

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/code-assembler.cc
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc
index de79177be0e51fbd294216568eaefd2add5f3f57..a9b20c7eadeab2c1f4068be24b54202044028a90 100644
--- a/src/compiler/code-assembler.cc
+++ b/src/compiler/code-assembler.cc
@@ -477,6 +477,13 @@ Node* CodeAssembler::AtomicExchange(MachineType type, Node* base, Node* offset,
return raw_assembler()->AtomicExchange(type, base, offset, value);
}
+Node* CodeAssembler::AtomicCompareExchange(MachineType type, Node* base,
+ Node* offset, Node* old_value,
+ Node* new_value) {
+ return raw_assembler()->AtomicCompareExchange(type, base, offset, old_value,
+ new_value);
+}
+
Node* CodeAssembler::StoreRoot(Heap::RootListIndex root_index, Node* value) {
DCHECK(Heap::RootCanBeWrittenAfterInitialization(root_index));
Node* roots_array_start =

Powered by Google App Engine
This is Rietveld 408576698