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.

This commit is contained in:
Fraser Adams 2014-05-03 08:33:17 +01:00
Родитель 6aa34ba2a9
Коммит 733dda0061
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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'];
''')