diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-26 17:42:39 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-27 13:50:01 -0700 |
commit | 14d6b2cdab8e48deddb2b114c47406bcb1796b3a (patch) | |
tree | 0d3e45899feba230080399b83641d881c37555fd /tests/test_other.py | |
parent | 9ce739dbabb00ce0391c3790253fa686edb0a006 (diff) |
remove stack parameter from js optimizer traverse(), to avoid overhead when not needed
Diffstat (limited to 'tests/test_other.py')
-rw-r--r-- | tests/test_other.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 60bdefe1..8c6a199c 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -1774,16 +1774,9 @@ This pointer might make sense in another type signature: i: 0 def test_js_optimizer(self): for input, expected, passes in [ (path_from_root('tools', 'test-js-optimizer.js'), open(path_from_root('tools', 'test-js-optimizer-output.js')).read(), - ['hoistMultiples', 'loopOptimizer', 'removeAssignsToUndefined', 'simplifyExpressions']), - (path_from_root('tools', 'test-js-optimizer-t2c.js'), open(path_from_root('tools', 'test-js-optimizer-t2c-output.js')).read(), - ['simplifyExpressions', 'optimizeShiftsConservative']), - (path_from_root('tools', 'test-js-optimizer-t2.js'), open(path_from_root('tools', 'test-js-optimizer-t2-output.js')).read(), - ['simplifyExpressions', 'optimizeShiftsAggressive']), + ['hoistMultiples', 'removeAssignsToUndefined', 'simplifyExpressions']), (path_from_root('tools', 'test-js-optimizer-si.js'), open(path_from_root('tools', 'test-js-optimizer-si-output.js')).read(), ['simplifyIfs']), - # Make sure that optimizeShifts handles functions with shift statements. - (path_from_root('tools', 'test-js-optimizer-t3.js'), open(path_from_root('tools', 'test-js-optimizer-t3-output.js')).read(), - ['optimizeShiftsAggressive']), (path_from_root('tools', 'test-js-optimizer-regs.js'), open(path_from_root('tools', 'test-js-optimizer-regs-output.js')).read(), ['registerize']), (path_from_root('tools', 'eliminator', 'eliminator-test.js'), open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read(), |