diff options
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 753f1c80..64e2bde4 100755 --- a/emscripten.py +++ b/emscripten.py @@ -302,7 +302,7 @@ var i64Math_multiply = function(a, b, c, d) { i64Math.multiply(a, b, c, d) }; var i64Math_divide = function(a, b, c, d, e) { i64Math.divide(a, b, c, d, e) }; var i64Math_modulo = function(a, b, c, d, e) { i64Math.modulo(a, b, c, d, e) }; ''' - asm_runtime_funcs = ['stackAlloc', 'stackSave', 'stackRestore'] + ['setTempRet%d' % i for i in range(10)] + asm_runtime_funcs = ['stackAlloc', 'stackSave', 'stackRestore', 'setThrew'] + ['setTempRet%d' % i for i in range(10)] # function tables function_tables = ['dynCall_' + table for table in last_forwarded_json['Functions']['tables']] function_tables_impls = [] @@ -363,6 +363,10 @@ var asmPre = (function(env, buffer) { top = top|0; STACKTOP = top; } + function setThrew(threw) { + threw = threw|0; + __THREW__ = threw; + } ''' + ''.join([''' var tempRet%d = 0; function setTempRet%d(value) { |