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

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

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: dmb Created 3 years, 10 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.h
diff --git a/src/compiler/code-assembler.h b/src/compiler/code-assembler.h
index 0d2aa72835d851893e0e53517cd47b4066a5c928..66a1f295893eb4685cee2c29dae86a13ab551876 100644
--- a/src/compiler/code-assembler.h
+++ b/src/compiler/code-assembler.h
@@ -275,6 +275,10 @@ class V8_EXPORT_PRIVATE CodeAssembler {
// Exchange value at raw memory location
Node* AtomicExchange(MachineType type, Node* base, Node* offset, Node* value);
+ // Compare and Exchange value at raw memory location
+ Node* AtomicCompareExchange(MachineType type, Node* base, Node* offset,
+ Node* old_value, Node* new_value);
+
// Store a value to the root array.
Node* StoreRoot(Heap::RootListIndex root_index, Node* value);

Powered by Google App Engine
This is Rietveld 408576698