[mac debug] LayoutTest workers/wasm-long-compile-many.html is a flaky timeout
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Apr 2017 21:17:24 +0000 (21:17 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Apr 2017 21:17:24 +0000 (21:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171120
<rdar://problem/31781889>

Rubber stamped by Mark Lam.

Make the wasm binary we compile close to 50% smaller.

* workers/wasm-resources/long-compile-many.js:
(i.async.run):
(i.worker.onmessage):
* workers/wasm-resources/long-compile-worker.js:
* workers/wasm-resources/long-compile.js:
(async.run):
(worker.onmessage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215695 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/workers/wasm-resources/long-compile-many.js
LayoutTests/workers/wasm-resources/long-compile-worker.js
LayoutTests/workers/wasm-resources/long-compile.js

index 32fdc98..8828de5 100644 (file)
@@ -1,3 +1,21 @@
+2017-04-24  Saam Barati  <sbarati@apple.com>
+
+        [mac debug] LayoutTest workers/wasm-long-compile-many.html is a flaky timeout
+        https://bugs.webkit.org/show_bug.cgi?id=171120
+        <rdar://problem/31781889>
+
+        Rubber stamped by Mark Lam.
+
+        Make the wasm binary we compile close to 50% smaller.
+
+        * workers/wasm-resources/long-compile-many.js:
+        (i.async.run):
+        (i.worker.onmessage):
+        * workers/wasm-resources/long-compile-worker.js:
+        * workers/wasm-resources/long-compile.js:
+        (async.run):
+        (worker.onmessage):
+
 2017-04-24  Ryan Haddad  <ryanhaddad@apple.com>
 
         Mark media/modern-media-controls/scrubber-support/scrubber-support-click.html as flaky.
index edf85de..bcc1db1 100644 (file)
@@ -22,7 +22,7 @@ for (let i = 0; i < numWorkers; ++i) {
 
         async function run(module) {
             let instance = await WebAssembly.instantiate(module);
-            const count = 12500;
+            const count = 7000;
             if (instance.exports.f1(i) !== (i*count + i*2))
                 console.log("Bad result");
             else
index 388b215..681ba3f 100644 (file)
@@ -1819,7 +1819,7 @@ class Builder {
                 .GetLocal(0)
                 .I32Add();
 
-    const count = 12500;
+    const count = 7000;
     for (let i = 0; i < count; i++) {
         builder = builder.GetLocal(0).I32Add();
     }
index 841ec0c..695347d 100644 (file)
@@ -21,7 +21,7 @@ worker.onmessage = function(e) {
     async function run(module) {
         let start = Date.now();
         let instance = await WebAssembly.instantiate(module);
-        const count = 12500;
+        const count = 7000;
         if (instance.exports.f1(4) !== (4*count + 4*2))
             console.log("Bad result");
         else