Skip to content

Commit 5ab937b

Browse files
author
Meghana Gupta
committedMay 7, 2018
Add modifications
1 parent 6e28e1e commit 5ab937b

File tree

6 files changed

+65
-34
lines changed

6 files changed

+65
-34
lines changed
 

‎test/benchmarks/ARES-6/Air/all.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"use strict";
22

3-
load("symbols.js");
4-
load("tmp_base.js");
5-
load("arg.js");
6-
load("basic_block.js");
7-
load("code.js");
8-
load("frequented_block.js");
9-
load("inst.js");
10-
load("opcode.js");
11-
load("reg.js");
12-
load("stack_slot.js");
13-
load("tmp.js");
14-
load("util.js");
15-
load("custom.js");
16-
load("liveness.js");
17-
load("insertion_set.js");
18-
load("allocate_stack.js");
3+
WScript.LoadScriptFile("symbols.js");
4+
WScript.LoadScriptFile("tmp_base.js");
5+
WScript.LoadScriptFile("arg.js");
6+
WScript.LoadScriptFile("basic_block.js");
7+
WScript.LoadScriptFile("code.js");
8+
WScript.LoadScriptFile("frequented_block.js");
9+
WScript.LoadScriptFile("inst.js");
10+
WScript.LoadScriptFile("opcode.js");
11+
WScript.LoadScriptFile("reg.js");
12+
WScript.LoadScriptFile("stack_slot.js");
13+
WScript.LoadScriptFile("tmp.js");
14+
WScript.LoadScriptFile("util.js");
15+
WScript.LoadScriptFile("custom.js");
16+
WScript.LoadScriptFile("liveness.js");
17+
WScript.LoadScriptFile("insertion_set.js");
18+
WScript.LoadScriptFile("allocate_stack.js");

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
*/
2525
"use strict";
2626

27-
load("all.js");
28-
load("payload-gbemu-executeIteration.js");
29-
load("payload-imaging-gaussian-blur-gaussianBlur.js");
30-
load("payload-airjs-ACLj8C.js");
31-
load("payload-typescript-scanIdentifier.js");
32-
load("benchmark.js");
27+
WScript.LoadScriptFile("all.js");
28+
WScript.LoadScriptFile("payload-gbemu-executeIteration.js");
29+
WScript.LoadScriptFile("payload-imaging-gaussian-blur-gaussianBlur.js");
30+
WScript.LoadScriptFile("payload-airjs-ACLj8C.js");
31+
WScript.LoadScriptFile("payload-typescript-scanIdentifier.js");
32+
WScript.LoadScriptFile("benchmark.js");
3333

3434
let result = runBenchmark();
3535
print("That took " + result + " ms.");

‎test/benchmarks/ARES-6/Basic/benchmark.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎test/benchmarks/ARES-6/Basic/test.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
"use strict";
22

3-
load("ast.js");
4-
load("basic.js");
5-
load("caseless_map.js");
6-
load("lexer.js");
7-
load("number.js");
8-
load("parser.js");
9-
load("random.js");
10-
load("state.js");
11-
load("util.js");
3+
WScript.LoadScriptFile("ast.js");
4+
WScript.LoadScriptFile("basic.js");
5+
WScript.LoadScriptFile("caseless_map.js");
6+
WScript.LoadScriptFile("lexer.js");
7+
WScript.LoadScriptFile("number.js");
8+
WScript.LoadScriptFile("parser.js");
9+
WScript.LoadScriptFile("random.js");
10+
WScript.LoadScriptFile("state.js");
11+
WScript.LoadScriptFile("util.js");
1212

13-
load("benchmark.js");
13+
WScript.LoadScriptFile("benchmark.js");
1414

1515
let result = runBenchmark();
1616
print("That took " + result + " ms.");

‎test/benchmarks/ARES-6/ml/benchmark.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function runBenchmark()
161161

162162
let before = currentTime();
163163

164-
let benchmark = new Benchmark();
164+
let benchmark = new MLBenchmark();
165165

166166
for (let iteration = 0; iteration < numIterations; ++iteration)
167167
benchmark.runIteration();

‎test/benchmarks/ARES-6/ml/test.js

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

0 commit comments

Comments
 (0)
Please sign in to comment.