summaryrefslogtreecommitdiff
path: root/build-js.sh
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-02-07 11:24:57 -0800
committerGitHub <noreply@github.com>2017-02-07 11:24:57 -0800
commit76c8f82d5cf98171ff46ed4bf36791d3b891357f (patch)
treeab251df55b1274b053896b10b14faf2ac8e526cd /build-js.sh
parent985bcba6239792ebcb3808f1066ca6ea20ac5688 (diff)
downloadbinaryen-76c8f82d5cf98171ff46ed4bf36791d3b891357f.tar.gz
binaryen-76c8f82d5cf98171ff46ed4bf36791d3b891357f.tar.bz2
binaryen-76c8f82d5cf98171ff46ed4bf36791d3b891357f.zip
asm2wasm debuginfo (#895)
* parse file/line comments in asm.js into debug intrinsics * convert debug intrinsics into annotations, and print them * ignore --debuginfo if not emitting text, as wasm binaries don't support that yet * emit full debug info when -g and emitting text; when -g and emitting binary, all we can do is the Names section * update wasm.js
Diffstat (limited to 'build-js.sh')
-rwxr-xr-xbuild-js.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build-js.sh b/build-js.sh
index 17635eee8..0b3787672 100755
--- a/build-js.sh
+++ b/build-js.sh
@@ -61,9 +61,13 @@ echo "building wasm.js"
"$EMSCRIPTEN/em++" \
$EMCC_ARGS \
src/wasm-js.cpp \
+ src/ast/ExpressionAnalyzer.cpp \
+ src/ast/ExpressionManipulator.cpp \
src/passes/pass.cpp \
+ src/passes/DeadCodeElimination.cpp \
src/passes/Print.cpp \
src/passes/LegalizeJSInterface.cpp \
+ src/passes/Vacuum.cpp \
src/emscripten-optimizer/parser.cpp \
src/emscripten-optimizer/simple_ast.cpp \
src/emscripten-optimizer/optimizer-shared.cpp \