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

Unified Diff: src/runtime/runtime-futex.cc

Issue 2143443002: [Atomics] Rename Atomics.futex*, remove Atomics.futexWakeOrRequeue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge master Created 4 years, 5 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
« no previous file with comments | « src/runtime/runtime-atomics.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/runtime/runtime-atomics.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698