Skip to content

Commit ed9f7e6

Browse files
committed
Feedback
1 parent 89a8a85 commit ed9f7e6

File tree

1,333 files changed

+2
-188579
lines changed

Some content is hidden

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

1,333 files changed

+2
-188579
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ This repository contains code that builds the following tools in `bin/`:
6565
* **wasm2asm**: A WebAssembly-to-asm.js compiler (still experimental).
6666
* **wasm-merge**: Combines wasm files into a single big wasm file (without sophisticated linking).
6767
* **wasm-ctor-eval**: A tool that can execute C++ global constructors ahead of time. Used by Emscripten.
68+
* **wasm-emscripten-finalize**: Takes a wasm binary produced by llvm+lld and performs emscripten-specific passes over it.
6869
* **wasm.js**: wasm.js contains Binaryen components compiled to JavaScript, including the interpreter, `asm2wasm`, the S-Expression parser, etc., which allow you to use Binaryen with Emscripten and execute code compiled to WASM even if the browser doesn't have native support yet. This can be useful as a (slow) polyfill.
6970
* **binaryen.js**: A standalone JavaScript library that exposes Binaryen methods for [creating and optimizing WASM modules](https://github.com/WebAssembly/binaryen/blob/master/test/binaryen.js/hello-world.js).
7071

auto_update_tests.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from scripts.test.support import run_command, split_wast, node_test_glue, node_has_webassembly
2323
from scripts.test.shared import (
24-
ASM2WASM, MOZJS, NODEJS, S2WASM, WASM_OPT, WASM_AS, WASM_DIS,
24+
ASM2WASM, MOZJS, NODEJS, WASM_OPT, WASM_AS, WASM_DIS,
2525
WASM_CTOR_EVAL, WASM_MERGE, WASM_REDUCE, WASM2ASM, WASM_METADCE,
2626
WASM_EMSCRIPTEN_FINALIZE, BINARYEN_INSTALL_DIR,
2727
files_with_pattern, has_shell_timeout)
@@ -69,35 +69,6 @@ def update_asm_js_tests():
6969
run_command(cmd)
7070

7171

72-
def update_dot_s_tests():
73-
extension_arg_map = {
74-
'.wast': [],
75-
'.clamp.wast': ['--trap-mode=clamp'],
76-
'.js.wast': ['--trap-mode=js'],
77-
'.jscall.wast': ['--emscripten-reserved-function-pointers=3'],
78-
}
79-
for dot_s_dir in ['dot_s', 'llvm_autogenerated']:
80-
for s in sorted(os.listdir(os.path.join('test', dot_s_dir))):
81-
if not s.endswith('.s'):
82-
continue
83-
print '..', s
84-
for ext, ext_args in extension_arg_map.iteritems():
85-
wasm = s.replace('.s', ext)
86-
expected_file = os.path.join('test', dot_s_dir, wasm)
87-
if ext != '.wast' and not os.path.exists(expected_file):
88-
continue
89-
90-
full = os.path.join('test', dot_s_dir, s)
91-
stack_alloc = ['--allocate-stack=1024'] if dot_s_dir == 'llvm_autogenerated' else []
92-
cmd = S2WASM + [full, '--emscripten-glue'] + stack_alloc + ext_args
93-
if s.startswith('start_'):
94-
cmd.append('--start')
95-
actual = run_command(cmd, stderr=subprocess.PIPE, expected_err='')
96-
97-
with open(expected_file, 'w') as o:
98-
o.write(actual)
99-
100-
10172
def update_lld_tests():
10273
print '\n[ checking wasm-emscripten-finalize testcases... ]\n'
10374

scripts/test/shared.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def wrap_with_valgrind(cmd):
191191
WASM_DIS = wrap_with_valgrind(WASM_DIS)
192192
ASM2WASM = wrap_with_valgrind(ASM2WASM)
193193
WASM_SHELL = wrap_with_valgrind(WASM_SHELL)
194-
S2WASM = wrap_with_valgrind(S2WASM)
195194

196195
os.environ['BINARYEN'] = os.getcwd()
197196

test/dot_s/alias.s

Lines changed: 0 additions & 51 deletions
This file was deleted.

test/dot_s/alternate-lcomm.s

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/dot_s/asm_const.s

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/dot_s/basics.s

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)