diff options
author | Fraser Adams <fraser.adams@blueyonder.co.uk> | 2014-05-03 08:33:17 +0100 |
---|---|---|
committer | Fraser Adams <fraser.adams@blueyonder.co.uk> | 2014-05-03 08:33:17 +0100 |
commit | 733dda0061bef045a99dd15db8b17ea3540db289 (patch) | |
tree | e82af15bf7372ff54a8c1064cf99c95a8f4af6ea | |
parent | 6aa34ba2a910d29749f90dc8a2b6b57f36a4350a (diff) |
Removed redundant wrapping function around Runtime.stackAlloc, Runtime.stackSave and Runtime.stackRestore assignments to their respective versions in the asm namespace. Reran test suite and retested with my own app which makes heavy use of stackSave and stackRestore.
-rwxr-xr-x | emscripten.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/emscripten.py b/emscripten.py index cc68e7a4..07f1249e 100755 --- a/emscripten.py +++ b/emscripten.py @@ -648,9 +648,9 @@ function getTempRet%d() { if not settings.get('SIDE_MODULE'): funcs_js.append(''' -Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) }; -Runtime.stackSave = function() { return asm['stackSave']() }; -Runtime.stackRestore = function(top) { asm['stackRestore'](top) }; +Runtime.stackAlloc = asm['stackAlloc']; +Runtime.stackSave = asm['stackSave']; +Runtime.stackRestore = asm['stackRestore']; Runtime.getTempRet0 = asm['getTempRet0']; ''') @@ -1229,9 +1229,9 @@ function getTempRet0() { if not settings.get('SIDE_MODULE'): funcs_js.append(''' -Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) }; -Runtime.stackSave = function() { return asm['stackSave']() }; -Runtime.stackRestore = function(top) { asm['stackRestore'](top) }; +Runtime.stackAlloc = asm['stackAlloc']; +Runtime.stackSave = asm['stackSave']; +Runtime.stackRestore = asm['stackRestore']; Runtime.getTempRet0 = asm['getTempRet0']; ''') |