More if-statment optimizations in JsStaticEval.

Adds two extra optimizations:

 - Empty, but present else statements are pruned:

if (x) {doSomething();} else {} -> if (x) {doSomething();}

 - If statements with empty "then" conditions are inverted:

if (x) {} else {doSomething()} -> if (!x) {doSomething();}

Patch by: mmastrac
Review by: me

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@5536 8db76d5a-ed1c-0410-87a9-c151d255dfc7
2 files changed