aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-01 15:54:16 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-07 14:23:22 -0800
commitc507a8cf49469b37814864ddc446feb88383dd5d (patch)
tree9891a3961c0cd11172f5557da415268a4e9709e0 /emscripten.py
parent74c843c55f0238bd75a919fdd5b2dc2f57f48fe2 (diff)
64-bit dynamic shifts in asm
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index 7c064850..1b05a7a8 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -291,9 +291,9 @@ def emscript(infile, settings, outfile, libraries=[]):
function_tables_defs = '\n'.join([table for table in last_forwarded_json['Functions']['tables'].itervalues()])
if settings.get('ASM_JS'):
- asm_setup = ''
+ asm_setup = 'var Runtime_bitshift64 = Runtime.bitshift64;'
fundamentals = ['buffer', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint16Array', 'Uint32Array', 'Float32Array', 'Float64Array']
- basics = ['abort', 'assert', 'STACKTOP', 'STACK_MAX', 'tempDoublePtr', 'ABORT']
+ basics = ['abort', 'assert', 'STACKTOP', 'STACK_MAX', 'tempDoublePtr', 'ABORT', 'Runtime_bitshift64']
if not settings['NAMED_GLOBALS']: basics += ['GLOBAL_BASE']
if forwarded_json['Types']['preciseI64MathUsed']:
basics += ['i64Math_' + op for op in ['add', 'subtract', 'multiply', 'divide', 'modulo']]