From 733dda0061bef045a99dd15db8b17ea3540db289 Mon Sep 17 00:00:00 2001 From: Fraser Adams Date: Sat, 3 May 2014 08:33:17 +0100 Subject: 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. --- emscripten.py | 12 ++++++------ 1 file 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']; ''') -- cgit v1.2.3-18-g5258