Meghana Gupta пре 8 година
родитељ
комит
5ab937bd58

+ 16 - 16
test/benchmarks/ARES-6/Air/all.js

@@ -1,18 +1,18 @@
 "use strict";
 
-load("symbols.js");
-load("tmp_base.js");
-load("arg.js");
-load("basic_block.js");
-load("code.js");
-load("frequented_block.js");
-load("inst.js");
-load("opcode.js");
-load("reg.js");
-load("stack_slot.js");
-load("tmp.js");
-load("util.js");
-load("custom.js");
-load("liveness.js");
-load("insertion_set.js");
-load("allocate_stack.js");
+WScript.LoadScriptFile("symbols.js");
+WScript.LoadScriptFile("tmp_base.js");
+WScript.LoadScriptFile("arg.js");
+WScript.LoadScriptFile("basic_block.js");
+WScript.LoadScriptFile("code.js");
+WScript.LoadScriptFile("frequented_block.js");
+WScript.LoadScriptFile("inst.js");
+WScript.LoadScriptFile("opcode.js");
+WScript.LoadScriptFile("reg.js");
+WScript.LoadScriptFile("stack_slot.js");
+WScript.LoadScriptFile("tmp.js");
+WScript.LoadScriptFile("util.js");
+WScript.LoadScriptFile("custom.js");
+WScript.LoadScriptFile("liveness.js");
+WScript.LoadScriptFile("insertion_set.js");
+WScript.LoadScriptFile("allocate_stack.js");

+ 6 - 6
test/benchmarks/ARES-6/Air/test.js

@@ -24,12 +24,12 @@
  */
 "use strict";
 
-load("all.js");
-load("payload-gbemu-executeIteration.js");
-load("payload-imaging-gaussian-blur-gaussianBlur.js");
-load("payload-airjs-ACLj8C.js");
-load("payload-typescript-scanIdentifier.js");
-load("benchmark.js");
+WScript.LoadScriptFile("all.js");
+WScript.LoadScriptFile("payload-gbemu-executeIteration.js");
+WScript.LoadScriptFile("payload-imaging-gaussian-blur-gaussianBlur.js");
+WScript.LoadScriptFile("payload-airjs-ACLj8C.js");
+WScript.LoadScriptFile("payload-typescript-scanIdentifier.js");
+WScript.LoadScriptFile("benchmark.js");
 
 let result = runBenchmark();
 print("That took " + result + " ms.");

+ 1 - 1
test/benchmarks/ARES-6/Basic/benchmark.js

@@ -55,7 +55,7 @@ function runBenchmark()
     
     let before = currentTime();
     
-    let benchmark = new Benchmark(verbose);
+    let benchmark = new BasicBenchmark(verbose);
     
     for (let iteration = 0; iteration < numIterations; ++iteration)
         benchmark.runIteration();

+ 10 - 10
test/benchmarks/ARES-6/Basic/test.js

@@ -1,16 +1,16 @@
 "use strict";
 
-load("ast.js");
-load("basic.js");
-load("caseless_map.js");
-load("lexer.js");
-load("number.js");
-load("parser.js");
-load("random.js");
-load("state.js");
-load("util.js");
+WScript.LoadScriptFile("ast.js");
+WScript.LoadScriptFile("basic.js");
+WScript.LoadScriptFile("caseless_map.js");
+WScript.LoadScriptFile("lexer.js");
+WScript.LoadScriptFile("number.js");
+WScript.LoadScriptFile("parser.js");
+WScript.LoadScriptFile("random.js");
+WScript.LoadScriptFile("state.js");
+WScript.LoadScriptFile("util.js");
 
-load("benchmark.js");
+WScript.LoadScriptFile("benchmark.js");
 
 let result = runBenchmark();
 print("That took " + result + " ms.");

+ 1 - 1
test/benchmarks/ARES-6/ml/benchmark.js

@@ -161,7 +161,7 @@ function runBenchmark()
 
     let before = currentTime();
 
-    let benchmark = new Benchmark();
+    let benchmark = new MLBenchmark();
 
     for (let iteration = 0; iteration < numIterations; ++iteration)
         benchmark.runIteration();

+ 31 - 0
test/benchmarks/ARES-6/ml/test.js

@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2016 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+ */
+"use strict";
+
+WScript.LoadScriptFile("index.js");
+WScript.LoadScriptFile("benchmark.js");
+
+let result = runBenchmark();
+print("That took " + result + " ms.");