| Index: src/harmony-atomics.js
|
| diff --git a/src/harmony-atomics.js b/src/harmony-atomics.js
|
| index 52180f9bdd45490153b18bdc360e8ae53226dbfe..8ee6b8f9d205a02119664848038251586f5dae5e 100644
|
| --- a/src/harmony-atomics.js
|
| +++ b/src/harmony-atomics.js
|
| @@ -12,12 +12,10 @@
|
| // Imports
|
|
|
| var GlobalObject = global.Object;
|
| -var MathMax;
|
| var ToNumber;
|
| var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
|
|
|
| utils.Import(function(from) {
|
| - MathMax = from.MathMax;
|
| ToNumber = from.ToNumber;
|
| });
|
|
|
| @@ -148,7 +146,7 @@ function AtomicsFutexWaitJS(ia, index, value, timeout) {
|
| if (NUMBER_IS_NAN(timeout)) {
|
| timeout = INFINITY;
|
| } else {
|
| - timeout = MathMax(0, timeout);
|
| + timeout = MAX_SIMPLE(0, timeout);
|
| }
|
| }
|
| return %AtomicsFutexWait(ia, index, value, timeout);
|
| @@ -160,14 +158,14 @@ function AtomicsFutexWakeJS(ia, index, count) {
|
| if (index < 0 || index >= %_TypedArrayGetLength(ia)) {
|
| return UNDEFINED;
|
| }
|
| - count = MathMax(0, $toInteger(count));
|
| + count = MAX_SIMPLE(0, $toInteger(count));
|
| return %AtomicsFutexWake(ia, index, count);
|
| }
|
|
|
| function AtomicsFutexWakeOrRequeueJS(ia, index1, count, value, index2) {
|
| CheckSharedInteger32TypedArray(ia);
|
| index1 = $toInteger(index1);
|
| - count = MathMax(0, $toInteger(count));
|
| + count = MAX_SIMPLE(0, $toInteger(count));
|
| value = TO_INT32(value);
|
| index2 = $toInteger(index2);
|
| if (index1 < 0 || index1 >= %_TypedArrayGetLength(ia) ||
|
|
|