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

Unified Diff: src/js/harmony-atomics.js

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/js/harmony-atomics.js
diff --git a/src/js/harmony-atomics.js b/src/js/harmony-atomics.js
index bfbf0c505e54bab3ff298f370de8d54c903114af..4b34e1222c182414124adbd1947f90b75408b96d 100644
--- a/src/js/harmony-atomics.js
+++ b/src/js/harmony-atomics.js
@@ -93,13 +93,6 @@ function AtomicsXorJS(ia, index, value) {
return %_AtomicsXor(ia, index, value);
}
-function AtomicsExchangeJS(ia, index, value) {
- CheckSharedIntegerTypedArray(ia);
- index = ValidateIndex(index, %_TypedArrayGetLength(ia));
- value = TO_NUMBER(value);
- return %_AtomicsExchange(ia, index, value);
-}
-
function AtomicsIsLockFreeJS(size) {
return %_AtomicsIsLockFree(size);
}
@@ -144,7 +137,6 @@ utils.InstallFunctions(Atomics, DONT_ENUM, [
"and", AtomicsAndJS,
"or", AtomicsOrJS,
"xor", AtomicsXorJS,
- "exchange", AtomicsExchangeJS,
"isLockFree", AtomicsIsLockFreeJS,
"wait", AtomicsWaitJS,
"wake", AtomicsWakeJS,

Powered by Google App Engine
This is Rietveld 408576698