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

Unified Diff: test/mjsunit/harmony/futex.js

Issue 2657403002: Revert of [d8] Use ValueSerializer for postMessage (instead of ad-hoc serializer) (Closed)
Patch Set: 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
« no previous file with comments | « test/mjsunit/d8-worker-sharedarraybuffer.js ('k') | test/mjsunit/regress/regress-crbug-514081.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/futex.js
diff --git a/test/mjsunit/harmony/futex.js b/test/mjsunit/harmony/futex.js
index 13a6995c2ad02015633865635b22f5a2790de11f..6790988678eb27c200185da4a7cb45e51ef140ab 100644
--- a/test/mjsunit/harmony/futex.js
+++ b/test/mjsunit/harmony/futex.js
@@ -120,7 +120,7 @@
};`;
var worker = new Worker(workerScript);
- worker.postMessage({sab: sab, offset: offset});
+ worker.postMessage({sab: sab, offset: offset}, [sab]);
// Spin until the worker is waiting on the futex.
while (%AtomicsNumWaitersForTesting(i32a, 0) != 1) {}
@@ -132,7 +132,7 @@
var worker2 = new Worker(workerScript);
var offset = 8;
var i32a2 = new Int32Array(sab, offset);
- worker2.postMessage({sab: sab, offset: offset});
+ worker2.postMessage({sab: sab, offset: offset}, [sab]);
// Spin until the worker is waiting on the futex.
while (%AtomicsNumWaitersForTesting(i32a2, 0) != 1) {}
@@ -144,7 +144,7 @@
// the real address is the same.
var worker3 = new Worker(workerScript);
i32a2 = new Int32Array(sab, 4);
- worker3.postMessage({sab: sab, offset: 8});
+ worker3.postMessage({sab: sab, offset: 8}, [sab]);
// Spin until the worker is waiting on the futex.
while (%AtomicsNumWaitersForTesting(i32a2, 1) != 1) {}
@@ -190,7 +190,7 @@
var workers = [];
for (id = 0; id < 4; id++) {
workers[id] = new Worker(workerScript);
- workers[id].postMessage({sab: sab, id: id});
+ workers[id].postMessage({sab: sab, id: id}, [sab]);
}
// Spin until all workers are waiting on the futex.
« no previous file with comments | « test/mjsunit/d8-worker-sharedarraybuffer.js ('k') | test/mjsunit/regress/regress-crbug-514081.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698