Skip to content

Commit 733dda0

Browse files
committedMay 3, 2014
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.
1 parent 6aa34ba commit 733dda0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎emscripten.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,9 @@ def math_fix(g):
648648

649649
if not settings.get('SIDE_MODULE'):
650650
funcs_js.append('''
651-
Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) };
652-
Runtime.stackSave = function() { return asm['stackSave']() };
653-
Runtime.stackRestore = function(top) { asm['stackRestore'](top) };
651+
Runtime.stackAlloc = asm['stackAlloc'];
652+
Runtime.stackSave = asm['stackSave'];
653+
Runtime.stackRestore = asm['stackRestore'];
654654
Runtime.getTempRet0 = asm['getTempRet0'];
655655
''')
656656

@@ -1229,9 +1229,9 @@ def math_fix(g):
12291229

12301230
if not settings.get('SIDE_MODULE'):
12311231
funcs_js.append('''
1232-
Runtime.stackAlloc = function(size) { return asm['stackAlloc'](size) };
1233-
Runtime.stackSave = function() { return asm['stackSave']() };
1234-
Runtime.stackRestore = function(top) { asm['stackRestore'](top) };
1232+
Runtime.stackAlloc = asm['stackAlloc'];
1233+
Runtime.stackSave = asm['stackSave'];
1234+
Runtime.stackRestore = asm['stackRestore'];
12351235
Runtime.getTempRet0 = asm['getTempRet0'];
12361236
''')
12371237

0 commit comments

Comments
 (0)