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

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

Issue 2623633003: [Atomics] Make Atomics.exchange a builtin using TF (Closed)
Patch Set: remove 0 extend for arm 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/js/harmony-atomics.js
diff --git a/src/js/harmony-atomics.js b/src/js/harmony-atomics.js
index daeba3f64ff790ae3d06525237afc132d793e7a3..16a4aae69ab3ebd4750b533905de1f60f533d61b 100644
--- a/src/js/harmony-atomics.js
+++ b/src/js/harmony-atomics.js
@@ -95,13 +95,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(TO_INTEGER(size));
}
@@ -151,7 +144,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