diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-05-13 10:33:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 10:33:55 -0700 |
commit | 67019f9a72175bc7a098d72aa14a6f6afeb2efce (patch) | |
tree | 83adc3d4a235c00f6bf545fc5aeeeadb8f1a5663 /build-js.sh | |
parent | a1ff274b6bca0ff8d1635c32a6d206863f0a2fc3 (diff) | |
download | binaryen-67019f9a72175bc7a098d72aa14a6f6afeb2efce.tar.gz binaryen-67019f9a72175bc7a098d72aa14a6f6afeb2efce.tar.bz2 binaryen-67019f9a72175bc7a098d72aa14a6f6afeb2efce.zip |
Add missing methods for globals to binaryen.js (#2099)
- Print `globals` array in the tracing mode like other arrays
(`functions`, `exports`, `imports`, ...)
- Add accessor functions for globals
Diffstat (limited to 'build-js.sh')
-rwxr-xr-x | build-js.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-js.sh b/build-js.sh index 42f81bb64..bc0a764cd 100755 --- a/build-js.sh +++ b/build-js.sh @@ -795,6 +795,12 @@ export_function "_BinaryenFunctionOptimize" export_function "_BinaryenFunctionRunPasses" export_function "_BinaryenFunctionSetDebugLocation" +# 'Global' operations +export_function "_BinaryenGlobalGetName" +export_function "_BinaryenGlobalGetType" +export_function "_BinaryenGlobalIsMutable" +export_function "_BinaryenGlobalGetInitExpr" + # 'Import' operations export_function "_BinaryenGlobalImportGetModule" export_function "_BinaryenGlobalImportGetBase" |