aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-13 14:43:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-13 14:43:40 -0800
commit2e55061621e16964e244906c3236797408aee119 (patch)
tree676342deb4e9562880527556e8dcccd6ee0c637a /emscripten.py
parentc4978b6c248bc076850743df2ba6b9a6d9af24bb (diff)
emit numeric constants for global variables, using our knowledge of the fixed value of GLOBAL_BASE
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index e845aef2..790b8674 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -308,7 +308,6 @@ def emscript(infile, settings, outfile, libraries=[]):
fundamentals = ['buffer', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint16Array', 'Uint32Array', 'Float32Array', 'Float64Array']
basic_funcs = ['abort', 'assert'] + [m.replace('.', '_') for m in maths]
basic_vars = ['STACKTOP', 'STACK_MAX', 'tempDoublePtr', 'ABORT']
- if not settings['NAMED_GLOBALS']: basic_vars += ['GLOBAL_BASE']
if forwarded_json['Types']['preciseI64MathUsed']:
basic_funcs += ['i64Math_' + op for op in ['add', 'subtract', 'multiply', 'divide', 'modulo']]
asm_setup += '''