| Index: src/runtime/runtime-futex.cc
|
| diff --git a/src/runtime/runtime-futex.cc b/src/runtime/runtime-futex.cc
|
| index a96641251952e8d805d037090e5a0064e2151656..b738a1d08162c5b998455260458506b0096c030a 100644
|
| --- a/src/runtime/runtime-futex.cc
|
| +++ b/src/runtime/runtime-futex.cc
|
| @@ -12,12 +12,12 @@
|
|
|
| // Implement Futex API for SharedArrayBuffers as defined in the
|
| // SharedArrayBuffer draft spec, found here:
|
| -// https://github.com/lars-t-hansen/ecmascript_sharedmem
|
| +// https://github.com/tc39/ecmascript_sharedmem
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -RUNTIME_FUNCTION(Runtime_AtomicsFutexWait) {
|
| +RUNTIME_FUNCTION(Runtime_AtomicsWait) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 4);
|
| CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0);
|
| @@ -35,8 +35,7 @@ RUNTIME_FUNCTION(Runtime_AtomicsFutexWait) {
|
| return FutexEmulation::Wait(isolate, array_buffer, addr, value, timeout);
|
| }
|
|
|
| -
|
| -RUNTIME_FUNCTION(Runtime_AtomicsFutexWake) {
|
| +RUNTIME_FUNCTION(Runtime_AtomicsWake) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 3);
|
| CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0);
|
| @@ -52,30 +51,7 @@ RUNTIME_FUNCTION(Runtime_AtomicsFutexWake) {
|
| return FutexEmulation::Wake(isolate, array_buffer, addr, count);
|
| }
|
|
|
| -
|
| -RUNTIME_FUNCTION(Runtime_AtomicsFutexWakeOrRequeue) {
|
| - HandleScope scope(isolate);
|
| - DCHECK(args.length() == 5);
|
| - CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0);
|
| - CONVERT_SIZE_ARG_CHECKED(index1, 1);
|
| - CONVERT_INT32_ARG_CHECKED(count, 2);
|
| - CONVERT_INT32_ARG_CHECKED(value, 3);
|
| - CONVERT_SIZE_ARG_CHECKED(index2, 4);
|
| - CHECK(sta->GetBuffer()->is_shared());
|
| - CHECK_LT(index1, NumberToSize(isolate, sta->length()));
|
| - CHECK_LT(index2, NumberToSize(isolate, sta->length()));
|
| - CHECK_EQ(sta->type(), kExternalInt32Array);
|
| -
|
| - Handle<JSArrayBuffer> array_buffer = sta->GetBuffer();
|
| - size_t addr1 = (index1 << 2) + NumberToSize(isolate, sta->byte_offset());
|
| - size_t addr2 = (index2 << 2) + NumberToSize(isolate, sta->byte_offset());
|
| -
|
| - return FutexEmulation::WakeOrRequeue(isolate, array_buffer, addr1, count,
|
| - value, addr2);
|
| -}
|
| -
|
| -
|
| -RUNTIME_FUNCTION(Runtime_AtomicsFutexNumWaitersForTesting) {
|
| +RUNTIME_FUNCTION(Runtime_AtomicsNumWaitersForTesting) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 2);
|
| CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0);
|
|
|