diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-02-21 14:09:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 14:09:33 -0800 |
commit | 38a029f5b697878d13e41d5ecdc6c5fa69837b77 (patch) | |
tree | 1baa1835b961922cfa7c14906248e1170d2452db /test/importedSignCast.asm.js | |
parent | c27040e315f75f5b5c50078e539714973dc21d12 (diff) | |
download | binaryen-38a029f5b697878d13e41d5ecdc6c5fa69837b77.tar.gz binaryen-38a029f5b697878d13e41d5ecdc6c5fa69837b77.tar.bz2 binaryen-38a029f5b697878d13e41d5ecdc6c5fa69837b77.zip |
fix asm2wasm import type setting - set the type of used calls based o… (#920)
* fix asm2wasm import type setting - set the type of used calls based on the context, early, so it's valid in the optimizer
Diffstat (limited to 'test/importedSignCast.asm.js')
-rw-r--r-- | test/importedSignCast.asm.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/importedSignCast.asm.js b/test/importedSignCast.asm.js new file mode 100644 index 000000000..60cc99d39 --- /dev/null +++ b/test/importedSignCast.asm.js @@ -0,0 +1,14 @@ +function asm(global, env, buffer) { + "use asm"; + + var gm = env._emscripten_glIsTexture; + + function func() { + gm(0) << 24 >> 24; + } + + var FUNCTION_TABLE_a = [ gm ]; + + return { func: func }; +} + |