Alex Lam S.L
|
94f84727ce
|
suppress switch branch de-duplication upon side effects (#1682)
fixes #1679
|
2017-03-26 13:32:43 +08:00 |
|
Alex Lam S.L
|
f83d370f57
|
improve switch optimisations (#1677)
- correctly determine reachability of (default) branches
- gracefully handle multiple default branches
- optimise branches with duplicate bodies
fixes #376
fixes #441
fixes #1674
|
2017-03-26 05:15:46 +08:00 |
|
Alex Lam S.L
|
8ca2401ebe
|
fix dead_code on AST_Switch (#1667)
Need to call `extract_declarations_from_unreachable_code()`.
fixes #1663
|
2017-03-25 16:21:42 +08:00 |
|
Mihai Bazon
|
dac6efb43d
|
Drop last default: if it's the last branch and empty
Close #141
|
2013-03-01 13:12:03 +02:00 |
|
Mihai Bazon
|
bdfcbf496b
|
better solution for the last test in constant switch folding
|
2012-11-14 12:21:43 +02:00 |
|
Mihai Bazon
|
dba8da4800
|
optimize constant switch blocks
ref. mishoo/UglifyJS#441
|
2012-11-14 12:06:07 +02:00 |
|