Skip to content

Commit 25deb22

Browse files
committed
Simple node program to convert the wasm testsuite to binary
Can also create/update the baseline files Remove failing tests between interpreter and jit for the time being
1 parent e8c58e2 commit 25deb22

File tree

253 files changed

+32254
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+32254
-42
lines changed

THIRD-PARTY-NOTICES.txt

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
ChakraCore uses third party material from the projects listed below.
2-
The original copyright notice and the license under which Microsoft
3-
received such third party material are set forth below. Microsoft
4-
reserves all other rights not expressly granted, whether by
5-
implication, estoppel or otherwise.
1+
ChakraCore uses third party material from the projects listed below.
2+
The original copyright notice and the license under which Microsoft
3+
received such third party material are set forth below. Microsoft
4+
reserves all other rights not expressly granted, whether by
5+
implication, estoppel or otherwise.
66

77
In the event that we accidentally failed to list a required notice, please
88
bring it to our attention. Post an issue or email us:
99

1010
1111

1212

13-
-------------------------------------------
13+
-------------------------------------------
1414

1515

1616
SunSpider
@@ -38,7 +38,7 @@ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
3838
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
3939
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4040
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4242

4343

4444
-------------------------------------------
@@ -98,7 +98,7 @@ so, subject to the following conditions:
9898
documentation and/or other materials provided with the distribution.
9999

100100
* Neither the names of the LLVM Team, University of Illinois at
101-
Urbana-Champaign, nor the names of its contributors may be used to
101+
Urbana-Champaign, nor the names of its contributors may be used to
102102
endorse or promote products derived from this Software without specific
103103
prior written permission.
104104

@@ -115,7 +115,7 @@ SOFTWARE.
115115
Anything not in the tests/ directory:
116116

117117
Copyright (C) 2014 Apple Inc. All rights reserved.
118-
118+
119119
Redistribution and use in source and binary forms, with or without
120120
modification, are permitted provided that the following conditions
121121
are met:
@@ -124,7 +124,7 @@ Anything not in the tests/ directory:
124124
2. Redistributions in binary form must reproduce the above copyright
125125
notice, this list of conditions and the following disclaimer in the
126126
documentation and/or other materials provided with the distribution.
127-
127+
128128
THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
129129
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
130130
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -137,7 +137,7 @@ Anything not in the tests/ directory:
137137
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
138138
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
139139

140-
140+
141141
-------------------------------------------
142142

143143
Kraken
@@ -166,41 +166,41 @@ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
166166
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
167167
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
168168
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
169-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
169+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
170170

171171
-------------------------------------------
172172
Octane
173173

174-
Copyright (c) 2013, the V8 project authors (http://code.google.com/p/v8/)
175-
All rights reserved.
176-
177-
Redistribution and use in source and binary forms, with or without
178-
modification, are permitted provided that the following conditions are met:
179-
180-
* Redistributions of source code must retain the above copyright notice, this
181-
list of conditions and the following disclaimer.
182-
183-
* Redistributions in binary form must reproduce the above copyright notice,
184-
this list of conditions and the following disclaimer in the documentation
185-
and/or other materials provided with the distribution.
186-
187-
* Neither the name of Google, Inc. nor the names of its
188-
contributors may be used to endorse or promote products derived from
189-
this software without specific prior written permission.
190-
191-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
192-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
193-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
194-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
195-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
196-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
197-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
198-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
199-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
200-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
174+
Copyright (c) 2013, the V8 project authors (http://code.google.com/p/v8/)
175+
All rights reserved.
176+
177+
Redistribution and use in source and binary forms, with or without
178+
modification, are permitted provided that the following conditions are met:
179+
180+
* Redistributions of source code must retain the above copyright notice, this
181+
list of conditions and the following disclaimer.
182+
183+
* Redistributions in binary form must reproduce the above copyright notice,
184+
this list of conditions and the following disclaimer in the documentation
185+
and/or other materials provided with the distribution.
186+
187+
* Neither the name of Google, Inc. nor the names of its
188+
contributors may be used to endorse or promote products derived from
189+
this software without specific prior written permission.
190+
191+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
192+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
193+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
194+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
195+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
196+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
197+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
198+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
199+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
200+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
201201

202202
---------------------------------------------------------------------------
203-
Catch
203+
Catch
204204

205205
Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved.
206206

@@ -229,3 +229,11 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
229229
DEALINGS IN THE SOFTWARE.
230230

231231
---------------------------------------------------------------------------
232+
WebAssembly/testsuite
233+
234+
URL of the license https://github.com/WebAssembly/spec/blob/master/LICENSE
235+
https://github.com/WebAssembly/testsuite is a mirror of a subfolder of
236+
https://github.com/WebAssembly/spec
237+
238+
The files in test/WasmSpec/testsuite are licensed as specified in test/WasmSpec/testsuite/LICENSE
239+
unless otherwise stated in the file

jenkins/check_copyright.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ git diff --name-only `git merge-base origin/master HEAD` HEAD |
3333
grep -v -E '\.nuspec$' |
3434
grep -v -E '\.def$' |
3535
grep -v -E '\.inc$' |
36+
grep -v -E '\.json$' |
37+
grep -v -E 'test/WasmSpec/testsuite/.*$' |
3638
grep -v -E 'test/benchmarks/.*\.js$' |
3739
grep -v -E 'bin/External/.*$' |
3840
grep -v -E 'bin/NativeTests/Scripts/splay.js$' |

lib/Runtime/Base/ScriptContext.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,13 +1859,14 @@ if (!sourceList)
18591859
}
18601860
catch (Wasm::WasmCompilationException ex)
18611861
{
1862+
Wasm::WasmCompilationException newEx(_u("function %s: %s"), body->GetDisplayName(), ex.GetErrorMessage());
18621863
if (propagateError)
18631864
{
1864-
throw;
1865+
throw newEx;
18651866
}
18661867
Js::JavascriptLibrary *library = scriptContext->GetLibrary();
18671868
Js::JavascriptError *pError = library->CreateError();
1868-
Js::JavascriptError::SetErrorMessage(pError, JSERR_WasmCompileError, ex.ReleaseErrorMessage(), scriptContext);
1869+
Js::JavascriptError::SetErrorMessage(pError, JSERR_WasmCompileError, newEx.ReleaseErrorMessage(), scriptContext);
18691870

18701871
func->GetDynamicType()->SetEntryPoint(WasmLazyTrapCallback);
18711872
entypointInfo->jsMethod = WasmLazyTrapCallback;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
97
2+
98
3+
99
4+
122
5+
25185
6+
25185
7+
25699
8+
1684234849
9+
$invoke_0 = undefined
10+
0
11+
0
12+
0
13+
0
14+
0
15+
0
16+
0
17+
0
18+
$invoke_1 = undefined
19+
address.wast:33: $assert_trap_2 failed, runtime trap NYI
20+
address.wast:34: $assert_trap_3 failed, runtime trap NYI
21+
address.wast:35: $assert_trap_4 failed, runtime trap NYI
22+
0/3 tests passed.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0/0 tests passed.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
block.wast:139: $assert_return_9 unexpectedly threw: Error: Compiling wasm failed: function break-bare[10]: Unknown opcode 0xA
2+
block.wast:142: $assert_return_12 unexpectedly threw: Error: Compiling wasm failed: function break-inner[13]: Invalid input type
3+
block.wast:148: $assert_return_17 unexpectedly threw: Error: Compiling wasm failed: function drop-break-value-heterogeneous[18]: Operator I64Const NYI
4+
16/19 tests passed.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Unexpected Error while compiling br.0.wasm
2+
Error: Compiling wasm failed: I64 support NYI
3+
0/0 tests passed.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
br_if.wast:170: $assert_return_28 unexpectedly threw: Error: Compiling wasm failed: function as-return-value[12]: Nonzero arity for return op in void function
2+
br_if.wast:171: $assert_return_29 unexpectedly threw: Error: Compiling wasm failed: function as-return-value[12]: Nonzero arity for return op in void function
3+
48/50 tests passed.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Unexpected Error while compiling br_table.0.wasm
2+
Error: Compiling wasm failed: I64 support NYI
3+
0/0 tests passed.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15/15 tests passed.

0 commit comments

Comments
 (0)