Make it easy to package Air.js
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2016 01:52:58 +0000 (01:52 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2016 01:52:58 +0000 (01:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=158652

Reviewed by Benjamin Poulain.

If you want to give Air.js to someone, you can now do:

cd PerformanceTests/Air.js
./make_dist.sh

This will create Air.js.tar.gz and a directory called Air.js. If you want to send someone
the benchmark, just send either of those things and tell them to look at index.html.

You may have to edit make_dist.sh for wherever you have Markdown.pl. You can get that from
https://daringfireball.net/projects/markdown/

* Air.js/make_dist.sh: Added.
* Air.js/test.html:

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

PerformanceTests/Air.js/make_dist.sh [new file with mode: 0755]
PerformanceTests/Air.js/test.html
PerformanceTests/ChangeLog

diff --git a/PerformanceTests/Air.js/make_dist.sh b/PerformanceTests/Air.js/make_dist.sh
new file mode 100755 (executable)
index 0000000..fe4c9a7
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+set -e
+set -x
+
+MARKDOWN="perl $HOME/Documents/Markdown.pl"
+
+rm -rf Air.js
+mkdir Air.js
+${MARKDOWN} < README.md > Air.js/index.html
+cp \
+    all.js \
+    allocate_stack.js \
+    arg.js \
+    basic_block.js \
+    benchmark.js \
+    code.js \
+    custom.js \
+    frequented_block.js \
+    insertion_set.js \
+    inst.js \
+    liveness.js \
+    opcode.js \
+    payload-airjs-ACLj8C.js \
+    payload-gbemu-executeIteration.js \
+    payload-imaging-gaussian-blur-gaussianBlur.js \
+    payload-typescript-scanIdentifier.js \
+    reg.js \
+    stack_slot.js \
+    symbols.js \
+    test.html \
+    test.js \
+    tmp.js \
+    tmp_base.js \
+    util.js \
+    Air.js/
+
+tar -czvf Air.js.tar.gz Air.js
+
index 281b4ad..506ef3d 100644 (file)
 <script src="benchmark.js"></script>
 <script>
     function runTest() {
-        var result = runBenchmark();
-        document.getElementById("result-summary").innerHTML = "That took " + result + " ms.";
+        try {
+            var result = runBenchmark();
+            document.getElementById("result-summary").innerHTML = "That took " + result + " ms.";
+        } catch (e) {
+            document.getElementById("result-summary").innerHTML = "Failed: " + e;
+        }
     }
 </script>
 </head>
index f57e3e8..89fca7a 100644 (file)
@@ -1,5 +1,26 @@
 2016-06-10  Filip Pizlo  <fpizlo@apple.com>
 
+        Make it easy to package Air.js
+        https://bugs.webkit.org/show_bug.cgi?id=158652
+
+        Reviewed by Benjamin Poulain.
+        
+        If you want to give Air.js to someone, you can now do:
+        
+        cd PerformanceTests/Air.js
+        ./make_dist.sh
+        
+        This will create Air.js.tar.gz and a directory called Air.js. If you want to send someone
+        the benchmark, just send either of those things and tell them to look at index.html.
+        
+        You may have to edit make_dist.sh for wherever you have Markdown.pl. You can get that from
+        https://daringfireball.net/projects/markdown/
+
+        * Air.js/make_dist.sh: Added.
+        * Air.js/test.html:
+
+2016-06-10  Filip Pizlo  <fpizlo@apple.com>
+
         Unreviewed, make the link to test.html into an actual link.
 
         * Air.js/README.md: