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

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

Issue 2623633003: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: [Atomics] Make Atomics.exchange a builtin using TF Created 3 years, 11 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 49ff64535542b9690512422c34efe231c5cd03ac..13c945c206fb36d63bb88a7e8e07b406ea711935 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -175,6 +175,10 @@ class V8_EXPORT_PRIVATE RawMachineAssembler {
return AddNode(machine()->AtomicStore(rep), base, index, value);
}
+ Node* AtomicExchange(MachineType rep, Node* base, Node* index, Node* value) {
+ return AddNode(machine()->AtomicExchange(rep), base, index, value);
+ }
+
// Arithmetic Operations.
Node* WordAnd(Node* a, Node* b) {
return AddNode(machine()->WordAnd(), a, b);

Powered by Google App Engine
This is Rietveld 408576698